From 079cf9e25e6f6ee2ab4ad6a76e972c6b8da4982b Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Wed, 5 Oct 2016 08:55:47 +0200 Subject: Removed refresh_rate column for the user table. --- ...4237e9d_remove_refresh_rate_column_from_the_.py | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 migrations/versions/f700c4237e9d_remove_refresh_rate_column_from_the_.py (limited to 'migrations') diff --git a/migrations/versions/f700c4237e9d_remove_refresh_rate_column_from_the_.py b/migrations/versions/f700c4237e9d_remove_refresh_rate_column_from_the_.py new file mode 100644 index 00000000..aca0d1ba --- /dev/null +++ b/migrations/versions/f700c4237e9d_remove_refresh_rate_column_from_the_.py @@ -0,0 +1,25 @@ +"""Remove refresh_rate column from the user table. + +Revision ID: f700c4237e9d +Revises: 16f8fc3cf0cc +Create Date: 2016-10-05 08:47:51.384069 + +""" + +# revision identifiers, used by Alembic. +revision = 'f700c4237e9d' +down_revision = '16f8fc3cf0cc' +branch_labels = None +depends_on = None + +from alembic import op +import sqlalchemy as sa + + +def upgrade(): + op.drop_column('user', 'refresh_rate') + + +def downgrade(): + op.add_column('user', sa.Column('refresh_rate', sa.Integer(), + default=60)) -- cgit