From aec00bb548dc2cd109115050c809e1175580a02f Mon Sep 17 00:00:00 2001 From: SpeedProg Date: Fri, 16 Nov 2018 15:21:07 +0100 Subject: [PATCH] corrected db scheme for dogma attributes and updated version info --- CHANGELOG.md | 3 +++ migrations/versions/5d4aee209354_.py | 33 ++++++++++++++++++++++++++++ waitlist/data/version.py | 2 +- waitlist/storage/database.py | 2 +- 4 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 migrations/versions/5d4aee209354_.py diff --git a/CHANGELOG.md b/CHANGELOG.md index b984c17a..767cfe3d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ #Changelog +* 1.5.4: + * Fixes: + * Corrected error in databases scheme to represent dogma attributes, which blocked imports * 1.5.3: * Fixes: * Fixed exception during ESI error handling, by calling a none existant method diff --git a/migrations/versions/5d4aee209354_.py b/migrations/versions/5d4aee209354_.py new file mode 100644 index 00000000..e38dbf02 --- /dev/null +++ b/migrations/versions/5d4aee209354_.py @@ -0,0 +1,33 @@ +"""empty message + +Revision ID: 5d4aee209354 +Revises: 99cd2a081a3c +Create Date: 2018-11-16 15:15:44.885014 + +""" +from alembic import op +import sqlalchemy as sa + +# revision identifiers, used by Alembic. +revision = '5d4aee209354' +down_revision = '99cd2a081a3c' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ## + op.alter_column('dogma_attributes', 'value', + existing_type=sa.Integer(), + type_=sa.Float(), + existing_nullable=True) + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ## + op.alter_column('dogma_attributes', 'value', + existing_type=sa.Float(), + type_=sa.Integer(), + existing_nullable=True) + # ### end Alembic commands ### diff --git a/waitlist/data/version.py b/waitlist/data/version.py index 67e93d13..daee64ac 100644 --- a/waitlist/data/version.py +++ b/waitlist/data/version.py @@ -1 +1 @@ -version = "1.5.3-$Format:%h$" +version = "1.5.4-$Format:%h$" diff --git a/waitlist/storage/database.py b/waitlist/storage/database.py index a786a9b1..331d423e 100644 --- a/waitlist/storage/database.py +++ b/waitlist/storage/database.py @@ -347,7 +347,7 @@ class InvTypeDogmaAttribute(Base): ondelete='CASCADE'), primary_key=True, autoincrement=False) attributeID = Column('attribute_id', Integer, primary_key=True) - value = Column('value', Integer) + value = Column('value', Float) class InvTypeDogmaEffect(Base):