|
Last change
on this file was
12069,
checked in by Steffen Hoffmann, 11 years ago
|
|
TagsPlugin: Re-write db schema setup procedures, refs #9521.
Since early schema change before tags-0.2 in 2006 (see [1750]) this plugins
schema check relied on a SELECT raising an exeption for non-existing db table.
This has been discussed lately and found to be a flawed approach, that even
breaks installations for Trac 0.13dev and ultimately 1.0 too.
Now we introduce the common, recommended approach of tracking plugin db schema
versions in Trac db table system, so the table existence test is called one
last time, current schema version set, and only this gets checked further on.
This changeset requires a database upgrade.
Old checks could even be finally dropped after the next stable release,
because there's likely no pre-tags-0.2 installation left out there, isn't it?
|
|
File size:
403 bytes
|
| Line | |
|---|
| 1 | # -*- coding: utf-8 -*- |
|---|
| 2 | # |
|---|
| 3 | # Copyright (C) 2006 Alec Thomas <alec@swapoff.org> |
|---|
| 4 | # Copyright (C) 2012 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 | # |
|---|
| 9 | |
|---|
| 10 | """ |
|---|
| 11 | See tractags.api for detailed information. |
|---|
| 12 | """ |
|---|
| 13 | |
|---|
| 14 | import api |
|---|
| 15 | import db |
|---|
| 16 | import wiki |
|---|
| 17 | import ticket |
|---|
| 18 | import macros |
|---|
| 19 | import web_ui |
|---|
| 20 | import admin |
|---|
Note: See
TracBrowser
for help on using the repository browser.