aboutsummaryrefslogtreecommitdiff
path: root/migrations/versions
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-07 10:59:54 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-07 10:59:54 +0200
commitc4eadb099283af409b13146554abf9e5a0cb49a6 (patch)
tree46cc6357bf50fc9ba884b346e4cd6fd8fcda7ad7 /migrations/versions
parentRedirect to the dashboard. (diff)
downloadnewspipe-c4eadb099283af409b13146554abf9e5a0cb49a6.tar.gz
newspipe-c4eadb099283af409b13146554abf9e5a0cb49a6.tar.bz2
newspipe-c4eadb099283af409b13146554abf9e5a0cb49a6.zip
Some other new update for the public profile page.
Diffstat (limited to 'migrations/versions')
-rw-r--r--migrations/versions/fa10b0bdd045_add_bio_column_to_user_table.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/migrations/versions/fa10b0bdd045_add_bio_column_to_user_table.py b/migrations/versions/fa10b0bdd045_add_bio_column_to_user_table.py
new file mode 100644
index 00000000..2d839626
--- /dev/null
+++ b/migrations/versions/fa10b0bdd045_add_bio_column_to_user_table.py
@@ -0,0 +1,25 @@
+"""add bio column to user table
+
+Revision ID: fa10b0bdd045
+Revises: 8bf5694c0b9e
+Create Date: 2016-10-07 10:43:04.428178
+
+"""
+
+# revision identifiers, used by Alembic.
+revision = 'fa10b0bdd045'
+down_revision = '8bf5694c0b9e'
+branch_labels = None
+depends_on = None
+
+from alembic import op
+import sqlalchemy as sa
+
+
+def upgrade():
+ op.add_column('user', sa.Column('bio',
+ sa.String(5000), default=""))
+
+
+def downgrade():
+ op.drop_column('user', 'bio')
bgstack15