source: tagsplugin/trunk/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
RevLine 
[12069]1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3#
[13428]4# Copyright (C) 2012,2013 Steffen Hoffmann <hoff.st@web.de>
[12069]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
[13428]11schema_version = 4
[12069]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']),
[13428]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'),
[12069]29    ]
30]
31
32
33def get_data(db):
34    return (('permission',
35              ('username', 'action'),
36                (('anonymous', 'TAGS_VIEW'),
[12077]37                 ('authenticated', 'TAGS_MODIFY'))),
[12069]38            ('system',
39              ('name', 'value'),
40                (('tags_version', str(schema_version)),)))
Note: See TracBrowser for help on using the repository browser.