source: tagsplugin/tags/0.9/tractags/db_default.py

Last change on this file was 15558, checked in by Ryan J Ollos, 7 years ago

0.9dev: Remove unused imports

File size: 1.0 KB
Line 
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3#
4# Copyright (C) 2012,2013 Steffen Hoffmann <hoff.st@web.de>
5#
6# This software is licensed as described in the file COPYING, which
7# you should have received as part of this distribution.
8
9from trac.db import Table, Column, Index
10
11schema_version = 4
12
13
14schema = [
15    Table('tags', key=('tagspace', 'name', 'tag'))[
16        Column('tagspace'),
17        Column('name'),
18        Column('tag'),
19        Index(['tagspace', 'name']),
20        Index(['tagspace', 'tag']),
21    ],
22    Table('tags_change', key=('tagspace', 'name', 'time'))[
23        Column('tagspace'),
24        Column('name'),
25        Column('time', type='int64'),
26        Column('author'),
27        Column('oldtags'),
28        Column('newtags'),
29    ]
30]
31
32
33def get_data(db):
34    return (('permission',
35              ('username', 'action'),
36                (('anonymous', 'TAGS_VIEW'),
37                 ('authenticated', 'TAGS_MODIFY'))),
38            ('system',
39              ('name', 'value'),
40                (('tags_version', str(schema_version)),)))
Note: See TracBrowser for help on using the repository browser.