aboutsummaryrefslogtreecommitdiff
path: root/migrations
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-07-04 01:05:32 +0100
committerrubenwardy <rw@rubenwardy.com>2018-07-04 01:08:34 +0100
commit7813c766acb44a328e2a79bc95d8b949b0c1c205 (patch)
tree364bf58c6789e002cd93b723ba28a2f39ebbd1dc /migrations
parent9fc9826d3012b2551e1f36baf2ad4ad78be2cd14 (diff)
downloadcheatdb-7813c766acb44a328e2a79bc95d8b949b0c1c205.tar.xz
Add package scores and split homepage into new and popular
Diffstat (limited to 'migrations')
-rw-r--r--migrations/versions/11b6ef362f98_.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/migrations/versions/11b6ef362f98_.py b/migrations/versions/11b6ef362f98_.py
new file mode 100644
index 0000000..bb3b925
--- /dev/null
+++ b/migrations/versions/11b6ef362f98_.py
@@ -0,0 +1,28 @@
+"""empty message
+
+Revision ID: 11b6ef362f98
+Revises: 9fc23495713b
+Create Date: 2018-07-04 01:01:45.440662
+
+"""
+from alembic import op
+import sqlalchemy as sa
+
+
+# revision identifiers, used by Alembic.
+revision = '11b6ef362f98'
+down_revision = '9fc23495713b'
+branch_labels = None
+depends_on = None
+
+
+def upgrade():
+ # ### commands auto generated by Alembic - please adjust! ###
+ op.add_column('package', sa.Column('score', sa.Float(), nullable=False, server_default="0.0"))
+ # ### end Alembic commands ###
+
+
+def downgrade():
+ # ### commands auto generated by Alembic - please adjust! ###
+ op.drop_column('package', 'score')
+ # ### end Alembic commands ###