diff options
| author | rubenwardy <rw@rubenwardy.com> | 2018-07-04 01:05:32 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2018-07-04 01:08:34 +0100 |
| commit | 7813c766acb44a328e2a79bc95d8b949b0c1c205 (patch) | |
| tree | 364bf58c6789e002cd93b723ba28a2f39ebbd1dc /migrations | |
| parent | 9fc9826d3012b2551e1f36baf2ad4ad78be2cd14 (diff) | |
| download | cheatdb-7813c766acb44a328e2a79bc95d8b949b0c1c205.tar.xz | |
Add package scores and split homepage into new and popular
Diffstat (limited to 'migrations')
| -rw-r--r-- | migrations/versions/11b6ef362f98_.py | 28 |
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 ### |
