aboutsummaryrefslogtreecommitdiff
path: root/migrations
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-09-20 14:48:25 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-09-20 14:48:25 +0200
commit8bb831a4c3ce3a2e9c0d61a5a058db87a9e408a0 (patch)
treed2f2eb71f19808ea5f56f419595279658fc95035 /migrations
parentlazy loading of the translation (diff)
downloadnewspipe-8bb831a4c3ce3a2e9c0d61a5a058db87a9e408a0.tar.gz
newspipe-8bb831a4c3ce3a2e9c0d61a5a058db87a9e408a0.tar.bz2
newspipe-8bb831a4c3ce3a2e9c0d61a5a058db87a9e408a0.zip
Draft for a public user profile page.
Diffstat (limited to 'migrations')
-rw-r--r--migrations/versions/957d4c5b8ac9_add_column_is_public_profile_to_the_.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/migrations/versions/957d4c5b8ac9_add_column_is_public_profile_to_the_.py b/migrations/versions/957d4c5b8ac9_add_column_is_public_profile_to_the_.py
new file mode 100644
index 00000000..4e967121
--- /dev/null
+++ b/migrations/versions/957d4c5b8ac9_add_column_is_public_profile_to_the_.py
@@ -0,0 +1,25 @@
+"""add column is_public_profile to the user table
+
+Revision ID: 957d4c5b8ac9
+Revises: 2472eddbf44b
+Create Date: 2016-09-20 14:35:31.302555
+
+"""
+
+# revision identifiers, used by Alembic.
+revision = '957d4c5b8ac9'
+down_revision = '2472eddbf44b'
+branch_labels = None
+depends_on = None
+
+from alembic import op
+import sqlalchemy as sa
+
+
+def upgrade():
+ op.add_column('user', sa.Column('is_public_profile',
+ sa.Boolean(), default=False))
+
+
+def downgrade():
+ op.drop_column('user', 'is_public_profile')
bgstack15