mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-03 03:37:28 +01:00
Fix replace problem in migration
This commit is contained in:
parent
2586a11bcf
commit
36f9572cbb
@ -20,7 +20,7 @@ depends_on = None
|
|||||||
|
|
||||||
def upgrade():
|
def upgrade():
|
||||||
# ### commands auto generated by Alembic - please adjust! ###
|
# ### commands auto generated by Alembic - please adjust! ###
|
||||||
op.alter_column('package', 'short_desc', nullable=False, new_column_name='short_desc')
|
op.alter_column('package', 'shortDesc', nullable=False, new_column_name='short_desc')
|
||||||
op.add_column('package', sa.Column('search_vector', TSVectorType("title", "short_desc", "desc"), nullable=True))
|
op.add_column('package', sa.Column('search_vector', TSVectorType("title", "short_desc", "desc"), nullable=True))
|
||||||
op.create_index('ix_package_search_vector', 'package', ['search_vector'], unique=False, postgresql_using='gin')
|
op.create_index('ix_package_search_vector', 'package', ['search_vector'], unique=False, postgresql_using='gin')
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ def upgrade():
|
|||||||
sa.Column('author_id', sa.Integer(), nullable=True),
|
sa.Column('author_id', sa.Integer(), nullable=True),
|
||||||
sa.Column('name', sa.String(length=100), nullable=False),
|
sa.Column('name', sa.String(length=100), nullable=False),
|
||||||
sa.Column('title', sa.String(length=100), nullable=False),
|
sa.Column('title', sa.String(length=100), nullable=False),
|
||||||
sa.Column('short_desc', sa.String(length=200), nullable=False),
|
sa.Column('shortDesc', sa.String(length=200), nullable=False),
|
||||||
sa.Column('desc', sa.Text(), nullable=True),
|
sa.Column('desc', sa.Text(), nullable=True),
|
||||||
sa.Column('type', sa.Enum('MOD', 'GAME', 'TXP', name='packagetype'), nullable=True),
|
sa.Column('type', sa.Enum('MOD', 'GAME', 'TXP', name='packagetype'), nullable=True),
|
||||||
sa.Column('license_id', sa.Integer(), nullable=True),
|
sa.Column('license_id', sa.Integer(), nullable=True),
|
||||||
@ -141,7 +141,7 @@ def upgrade():
|
|||||||
op.create_table('edit_request_change',
|
op.create_table('edit_request_change',
|
||||||
sa.Column('id', sa.Integer(), nullable=False),
|
sa.Column('id', sa.Integer(), nullable=False),
|
||||||
sa.Column('request_id', sa.Integer(), nullable=True),
|
sa.Column('request_id', sa.Integer(), nullable=True),
|
||||||
sa.Column('key', sa.Enum('name', 'title', 'short_desc', 'desc', 'type', 'license', 'tags', 'repo', 'website', 'issueTracker', 'forums', name='packagepropertykey'), nullable=False),
|
sa.Column('key', sa.Enum('name', 'title', 'shortDesc', 'desc', 'type', 'license', 'tags', 'repo', 'website', 'issueTracker', 'forums', name='packagepropertykey'), nullable=False),
|
||||||
sa.Column('oldValue', sa.Text(), nullable=True),
|
sa.Column('oldValue', sa.Text(), nullable=True),
|
||||||
sa.Column('newValue', sa.Text(), nullable=True),
|
sa.Column('newValue', sa.Text(), nullable=True),
|
||||||
sa.ForeignKeyConstraint(['request_id'], ['edit_request.id'], ),
|
sa.ForeignKeyConstraint(['request_id'], ['edit_request.id'], ),
|
||||||
|
Loading…
Reference in New Issue
Block a user