mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-02 19:27:29 +01:00
Fix CI due to failing migration
This commit is contained in:
parent
a0da9ef61e
commit
c21337b9ff
@ -20,10 +20,11 @@ def upgrade():
|
||||
batch_op.add_column(sa.Column("name", sa.String(length=30), nullable=False, server_default=""))
|
||||
batch_op.add_column(sa.Column("release_notes", sa.UnicodeText(), nullable=True))
|
||||
batch_op.alter_column("releaseDate", nullable=False, new_column_name="created_at")
|
||||
batch_op.execute("""
|
||||
UPDATE package_release SET name = title WHERE length(title) <= 30;
|
||||
UPDATE package_release SET name = TO_CHAR(created_at, 'YYYY-MM-DD') WHERE name = '';
|
||||
""")
|
||||
|
||||
op.execute("""
|
||||
UPDATE package_release SET name = title WHERE length(title) <= 30;
|
||||
UPDATE package_release SET name = TO_CHAR(created_at, 'YYYY-MM-DD') WHERE name = '';
|
||||
""")
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user