##// END OF EJS Templates
database: fix migration for mysql....
marcink -
r3791:427b1696 stable
parent child Browse files
Show More
@@ -4,6 +4,7 b' import logging'
4
4
5 from alembic.migration import MigrationContext
5 from alembic.migration import MigrationContext
6 from alembic.operations import Operations
6 from alembic.operations import Operations
7 from sqlalchemy import String
7
8
8 from rhodecode.lib.dbmigrate.versions import _reset_base
9 from rhodecode.lib.dbmigrate.versions import _reset_base
9 from rhodecode.model import init_model_encryption
10 from rhodecode.model import init_model_encryption
@@ -28,7 +29,7 b' def upgrade(migrate_engine):'
28 repo_group = db_4_16_0_2.RepoGroup.__table__
29 repo_group = db_4_16_0_2.RepoGroup.__table__
29
30
30 with op.batch_alter_table(repo_group.name) as batch_op:
31 with op.batch_alter_table(repo_group.name) as batch_op:
31 batch_op.alter_column("repo_group_name_hash", nullable=False)
32 batch_op.alter_column("repo_group_name_hash", type_=String(1024), nullable=False)
32
33
33
34
34 def downgrade(migrate_engine):
35 def downgrade(migrate_engine):
General Comments 0
You need to be logged in to leave comments. Login now