|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
upgrade_tables(self,
new_schema)
Upgrade table schema to new_schema, preserving data in
columns that exist in the current schema and new_schema. |
source code
|
|
|
|
|
|
|
get_database_version(self,
name='database_version')
Returns the database version from the SYSTEM table as an int,
or False if the entry is not found. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
has_table(self,
table)
Returns whether the table exists. |
source code
|
|
|
|
|
|
|
needs_upgrade(self,
version,
name='database_version')
Checks the database version to determine if an upgrade is needed. |
source code
|
|
|
|
upgrade(self,
version,
name='database_version',
pkg='trac.upgrades')
Invokes do_upgrade(env, version, cursor) in module
"%s/db%i.py" % (pkg, version), for each required version upgrade. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
environment_created(self)
Insert default data into the database. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from core.Component:
__repr__
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|