diff --git a/CHANGELOG.md b/CHANGELOG.md index 03ff9666..09dc83f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ #Changelog +* 1.0.2 + * Fixes + * fixed migration scripts to only use lowercase table names, this should fix problems with database configured to support casesensitive table names * 1.0.1 * Changes * Improved system/constellation import speed, also should properly retry failed imports now (timeouts etc.) diff --git a/migrations/versions/052e5edbdf5d_.py b/migrations/versions/052e5edbdf5d_.py index f3b4cc24..4ddc9572 100644 --- a/migrations/versions/052e5edbdf5d_.py +++ b/migrations/versions/052e5edbdf5d_.py @@ -15,7 +15,7 @@ def upgrade(): ### commands auto generated by Alembic - please adjust! ### - op.drop_index('ix_EveApiScope_scopeName', table_name='eveapiscope') + op.drop_index('ix_eveapiscope_scopeName', table_name='eveapiscope') op.add_column('accounts', sa.Column('had_welcome_mail', sa.Boolean(), server_default=sa.text(u'false'), nullable=True)) op.create_index(op.f('ix_eveapiscope_scopeName'), 'eveapiscope', ['scopeName'], unique=False) ### end Alembic commands ### @@ -24,7 +24,7 @@ def upgrade(): def downgrade(): ### commands auto generated by Alembic - please adjust! ## op.drop_index(op.f('ix_eveapiscope_scopeName'), table_name='eveapiscope') - op.create_index('ix_EveApiScope_scopeName', 'eveapiscope', ['scopeName'], unique=False) + op.create_index('ix_eveapiscope_scopeName', 'eveapiscope', ['scopeName'], unique=False) op.drop_column('accounts', 'had_welcome_mail') ### end Alembic commands ### diff --git a/migrations/versions/9ad747adbff1_.py b/migrations/versions/9ad747adbff1_.py index 7874b898..d24e1711 100644 --- a/migrations/versions/9ad747adbff1_.py +++ b/migrations/versions/9ad747adbff1_.py @@ -16,13 +16,13 @@ def upgrade(): ### commands auto generated by Alembic - please adjust! ### - op.create_table('EveApiScope', + op.create_table('eveapiscope', sa.Column('scopeID', sa.Integer(), nullable=False), sa.Column('scopeName', sa.String(length=100), nullable=True), sa.PrimaryKeyConstraint('scopeID') ) - op.create_index(op.f('ix_EveApiScope_scopeName'), 'EveApiScope', ['scopeName'], unique=False) - op.create_table('SSOToken', + op.create_index(op.f('ix_eveapiscope_scopeName'), 'eveapiscope', ['scopeName'], unique=False) + op.create_table('ssotoken', sa.Column('accountID', sa.Integer(), nullable=False), sa.Column('refresh_token', sa.String(length=128), nullable=True), sa.Column('access_token', sa.String(length=128), nullable=True), @@ -30,11 +30,11 @@ def upgrade(): sa.ForeignKeyConstraint(['accountID'], ['accounts.id'], ), sa.PrimaryKeyConstraint('accountID') ) - op.create_table('TokenScope', + op.create_table('tokenscope', sa.Column('tokenID', sa.Integer(), nullable=False), sa.Column('scopeID', sa.Integer(), nullable=False), - sa.ForeignKeyConstraint(['scopeID'], ['EveApiScope.scopeID'], ), - sa.ForeignKeyConstraint(['tokenID'], ['SSOToken.accountID'], ), + sa.ForeignKeyConstraint(['scopeID'], ['eveapiscope.scopeID'], ), + sa.ForeignKeyConstraint(['tokenID'], ['ssotoken.accountID'], ), sa.PrimaryKeyConstraint('tokenID', 'scopeID') ) #op.create_index(op.f('ix_account_notes_time'), 'account_notes', ['time'], unique=False) @@ -52,8 +52,8 @@ def downgrade(): op.add_column(u'accounts', sa.Column('access_token', mysql.VARCHAR(length=128), nullable=True)) op.create_index('ix_role_history_time', 'account_notes', ['time'], unique=False) op.drop_index(op.f('ix_account_notes_time'), table_name='account_notes') - op.drop_table('TokenScope') - op.drop_table('SSOToken') - op.drop_index(op.f('ix_EveApiScope_scopeName'), table_name='EveApiScope') - op.drop_table('EveApiScope') + op.drop_table('tokenscope') + op.drop_table('ssotoken') + op.drop_index(op.f('ix_eveapiscope_scopeName'), table_name='eveapiscope') + op.drop_table('eveapiscope') ### end Alembic commands ### diff --git a/waitlist/data/version.py b/waitlist/data/version.py index d29e8c68..156d3b0c 100644 --- a/waitlist/data/version.py +++ b/waitlist/data/version.py @@ -1 +1 @@ -version = "1.0.1-$Format:%h$" +version = "1.0.2-$Format:%h$"