0cd36ecdd937_.py (1155B)
1 """empty message 2 3 Revision ID: 0cd36ecdd937 4 Revises: None 5 Create Date: 2016-11-01 05:25:42.691768 6 7 """ 8 9 # revision identifiers, used by Alembic. 10 revision = '0cd36ecdd937' 11 down_revision = None 12 13 from alembic import op 14 import sqlalchemy as sa 15 16 17 def upgrade(): 18 ### commands auto generated by Alembic - please adjust! ### 19 op.create_table('URL', 20 sa.Column('id', sa.Integer(), nullable=False), 21 sa.Column('url', sa.UnicodeText(), nullable=True), 22 sa.PrimaryKeyConstraint('id'), 23 sa.UniqueConstraint('url') 24 ) 25 op.create_table('file', 26 sa.Column('id', sa.Integer(), nullable=False), 27 sa.Column('sha256', sa.String(), nullable=True), 28 sa.Column('ext', sa.UnicodeText(), nullable=True), 29 sa.Column('mime', sa.UnicodeText(), nullable=True), 30 sa.Column('addr', sa.UnicodeText(), nullable=True), 31 sa.Column('removed', sa.Boolean(), nullable=True), 32 sa.PrimaryKeyConstraint('id'), 33 sa.UniqueConstraint('sha256') 34 ) 35 ### end Alembic commands ### 36 37 38 def downgrade(): 39 ### commands auto generated by Alembic - please adjust! ### 40 op.drop_table('file') 41 op.drop_table('URL') 42 ### end Alembic commands ###