mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-08 08:33:45 +01:00
Fix PackageRelease migration setting names to "title"
This commit is contained in:
parent
64d8f30006
commit
d0fc83c00c
@ -17,9 +17,10 @@ depends_on = None
|
||||
|
||||
def upgrade():
|
||||
with op.batch_alter_table("package_release", schema=None) as batch_op:
|
||||
batch_op.add_column(sa.Column("name", sa.String(length=30), nullable=False, server_default="title"))
|
||||
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 pacakge_release SET name = title;")
|
||||
|
||||
|
||||
def downgrade():
|
||||
|
Loading…
Reference in New Issue
Block a user