From 36f9572cbbe25ba84b5ed6d7f784d0a55f43ca05 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 29 Jan 2019 03:01:53 +0000 Subject: [PATCH] Fix replace problem in migration --- migrations/versions/2f3c3597c78d_.py | 2 +- migrations/versions/83622276d439_.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/migrations/versions/2f3c3597c78d_.py b/migrations/versions/2f3c3597c78d_.py index b80945ea..4e5bf9bc 100644 --- a/migrations/versions/2f3c3597c78d_.py +++ b/migrations/versions/2f3c3597c78d_.py @@ -20,7 +20,7 @@ depends_on = None def upgrade(): # ### 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.create_index('ix_package_search_vector', 'package', ['search_vector'], unique=False, postgresql_using='gin') diff --git a/migrations/versions/83622276d439_.py b/migrations/versions/83622276d439_.py index b2757521..49f5ebb0 100644 --- a/migrations/versions/83622276d439_.py +++ b/migrations/versions/83622276d439_.py @@ -66,7 +66,7 @@ def upgrade(): sa.Column('author_id', sa.Integer(), nullable=True), sa.Column('name', 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('type', sa.Enum('MOD', 'GAME', 'TXP', name='packagetype'), nullable=True), sa.Column('license_id', sa.Integer(), nullable=True), @@ -141,7 +141,7 @@ def upgrade(): op.create_table('edit_request_change', sa.Column('id', sa.Integer(), nullable=False), 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('newValue', sa.Text(), nullable=True), sa.ForeignKeyConstraint(['request_id'], ['edit_request.id'], ),