aboutsummaryrefslogtreecommitdiff
path: root/migrations/versions
diff options
context:
space:
mode:
Diffstat (limited to 'migrations/versions')
-rw-r--r--migrations/versions/f700c4237e9d_remove_refresh_rate_column_from_the_.py25
1 files changed, 25 insertions, 0 deletions
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))
bgstack15