aboutsummaryrefslogtreecommitdiff
path: root/migrations
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-05 08:55:47 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-05 08:55:47 +0200
commit079cf9e25e6f6ee2ab4ad6a76e972c6b8da4982b (patch)
tree48f447e12df8827608c88637f9e53729112e90e2 /migrations
parentBugfix: 'feeds' is now a list. (diff)
downloadnewspipe-079cf9e25e6f6ee2ab4ad6a76e972c6b8da4982b.tar.gz
newspipe-079cf9e25e6f6ee2ab4ad6a76e972c6b8da4982b.tar.bz2
newspipe-079cf9e25e6f6ee2ab4ad6a76e972c6b8da4982b.zip
Removed refresh_rate column for the user table.
Diffstat (limited to 'migrations')
-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