diff --git a/app/models.py b/app/models.py index b8883efa..783f4ba7 100644 --- a/app/models.py +++ b/app/models.py @@ -111,7 +111,6 @@ class User(db.Model, ModelMixin, UserMixin): stripe_subscription_id = db.Column(db.String(128), unique=True) profile_picture_id = db.Column(db.ForeignKey(File.id), nullable=True) - is_developer = db.Column(db.Boolean, nullable=False, server_default="0") # contain the list of promo codes user has used. Promo codes are separated by "," promo_codes = db.Column(db.Text, nullable=True) diff --git a/migrations/versions/1b7d161d1012_.py b/migrations/versions/1b7d161d1012_.py new file mode 100644 index 00000000..671fe079 --- /dev/null +++ b/migrations/versions/1b7d161d1012_.py @@ -0,0 +1,29 @@ +"""empty message + +Revision ID: 1b7d161d1012 +Revises: c6e7fc37ad42 +Create Date: 2019-07-23 22:58:59.673800 + +""" +import sqlalchemy_utils +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = '1b7d161d1012' +down_revision = 'c6e7fc37ad42' +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.drop_column('users', 'is_developer') + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.add_column('users', sa.Column('is_developer', sa.BOOLEAN(), server_default=sa.text('false'), autoincrement=False, nullable=False)) + # ### end Alembic commands ###