##// END OF EJS Templates
fix: migration fix
ievgenii.v -
r5808:1d1060d5 feature/RCCE-217-...
parent child Browse files
Show More
@@ -25,8 +25,19 def upgrade(migrate_engine):
25 context = MigrationContext.configure(migrate_engine.connect())
25 context = MigrationContext.configure(migrate_engine.connect())
26 op = Operations(context)
26 op = Operations(context)
27
27
28 table = db.PullRequest.__table__
28 pr_table = db.PullRequest.__table__
29 with op.batch_alter_table(table.name) as batch_op:
29 with op.batch_alter_table(pr_table.name) as batch_op:
30 new_column = Column(
31 "settings_json",
32 MutationObj.as_mutable(
33 JsonType(dialect_map=dict(mysql=UnicodeText(16384))),
34 ),
35 default=dict,
36 )
37 batch_op.add_column(new_column)
38
39 pr_version_table = db.PullRequestVersion.__table__
40 with op.batch_alter_table(pr_version_table.name) as batch_op:
30 new_column = Column(
41 new_column = Column(
31 "settings_json",
42 "settings_json",
32 MutationObj.as_mutable(
43 MutationObj.as_mutable(
General Comments 0
You need to be logged in to leave comments. Login now