database: fix migration for mysql.
- It's really nice that mysql fails on that dependening on version, and our CI doesn't catch that.
This commit is contained in:
parent
3871a3713c
commit
1acd59be77
1 changed files with 2 additions and 1 deletions
|
|
@ -4,6 +4,7 @@ import logging
|
|||
|
||||
from alembic.migration import MigrationContext
|
||||
from alembic.operations import Operations
|
||||
from sqlalchemy import String
|
||||
|
||||
from rhodecode.lib.dbmigrate.versions import _reset_base
|
||||
from rhodecode.model import init_model_encryption
|
||||
|
|
@ -28,7 +29,7 @@ def upgrade(migrate_engine):
|
|||
repo_group = db_4_16_0_2.RepoGroup.__table__
|
||||
|
||||
with op.batch_alter_table(repo_group.name) as batch_op:
|
||||
batch_op.alter_column("repo_group_name_hash", nullable=False)
|
||||
batch_op.alter_column("repo_group_name_hash", type_=String(1024), nullable=False)
|
||||
|
||||
|
||||
def downgrade(migrate_engine):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue