aboutsummaryrefslogtreecommitdiff
path: root/migrations
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-06 11:09:21 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-06 11:09:21 +0200
commitc8122e1981527a716639561cc3f880764f06387b (patch)
tree56c58229ba294f89870b027dc18585cc19d2dc54 /migrations
parentImproved layout of the profile page. (diff)
downloadnewspipe-c8122e1981527a716639561cc3f880764f06387b.tar.gz
newspipe-c8122e1981527a716639561cc3f880764f06387b.tar.bz2
newspipe-c8122e1981527a716639561cc3f880764f06387b.zip
The user can now add its twitter page.
Diffstat (limited to 'migrations')
-rw-r--r--migrations/versions/5553a6c05fa7_add_column_twitter_in_the_user_table.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/migrations/versions/5553a6c05fa7_add_column_twitter_in_the_user_table.py b/migrations/versions/5553a6c05fa7_add_column_twitter_in_the_user_table.py
new file mode 100644
index 00000000..7c7132a8
--- /dev/null
+++ b/migrations/versions/5553a6c05fa7_add_column_twitter_in_the_user_table.py
@@ -0,0 +1,25 @@
+"""add column twitter in the user table
+
+Revision ID: 5553a6c05fa7
+Revises: f700c4237e9d
+Create Date: 2016-10-06 11:02:41.356322
+
+"""
+
+# revision identifiers, used by Alembic.
+revision = '5553a6c05fa7'
+down_revision = 'f700c4237e9d'
+branch_labels = None
+depends_on = None
+
+from alembic import op
+import sqlalchemy as sa
+
+
+def upgrade():
+ op.add_column('user', sa.Column('twitter',
+ sa.String(), default=""))
+
+
+def downgrade():
+ op.drop_column('user', 'twitter')
bgstack15