r1081@denkpolster: jan | 2008-04-04 18:48:20 +0200

- fix for SQLAlchemy deprecation warning when creating version table
This commit is contained in:
jan.dittberner 2008-04-04 16:48:45 +00:00
parent efcd7d2f63
commit d20edf4542

View File

@ -1,4 +1,4 @@
from sqlalchemy import Table,Column,MetaData,String,Integer,create_engine
from sqlalchemy import Table,Column,MetaData,String,Text,Integer,create_engine
from sqlalchemy import exceptions as sa_exceptions
from migrate.versioning.repository import Repository
from migrate.versioning.util import loadModel
@ -81,7 +81,7 @@ class ControlledSchema(object):
table = Table(tname,meta,
#Column('repository_id',String,primary_key=True), # MySQL needs a length
Column('repository_id',String(255),primary_key=True),
Column('repository_path',String),
Column('repository_path',Text),
Column('version',Integer),
)
table.create()