meta
This commit is contained in:
parent
edd42dfd76
commit
d385853186
48 changed files with 1344 additions and 488 deletions
28
migrations/versions/1a7c813a17c2_.py
Normal file
28
migrations/versions/1a7c813a17c2_.py
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
"""empty message
|
||||
|
||||
Revision ID: 1a7c813a17c2
|
||||
Revises: 7bb11a24276
|
||||
Create Date: 2014-05-14 01:41:03.495320
|
||||
|
||||
"""
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '1a7c813a17c2'
|
||||
down_revision = '7bb11a24276'
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
def upgrade():
|
||||
### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('item', sa.Column('sort_asin', sa.String(length=1000), nullable=True))
|
||||
op.create_index(op.f('ix_item_sort_asin'), 'item', ['sort_asin'], unique=False)
|
||||
### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_index(op.f('ix_item_sort_asin'), table_name='item')
|
||||
op.drop_column('item', 'sort_asin')
|
||||
### end Alembic commands ###
|
||||
36
migrations/versions/21589282102d_.py
Normal file
36
migrations/versions/21589282102d_.py
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
"""empty message
|
||||
|
||||
Revision ID: 21589282102d
|
||||
Revises: 2350803a5a2d
|
||||
Create Date: 2014-05-13 15:47:29.747858
|
||||
|
||||
"""
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '21589282102d'
|
||||
down_revision = '2350803a5a2d'
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
def upgrade():
|
||||
### commands auto generated by Alembic - please adjust! ###
|
||||
op.create_table('filter',
|
||||
sa.Column('id', sa.Integer(), nullable=False),
|
||||
sa.Column('item_id', sa.String(length=32), nullable=True),
|
||||
sa.Column('key', sa.String(length=200), nullable=True),
|
||||
sa.Column('value', sa.Text(), nullable=True),
|
||||
sa.Column('findvalue', sa.Text(), nullable=True),
|
||||
sa.ForeignKeyConstraint(['item_id'], ['item.id'], ),
|
||||
sa.PrimaryKeyConstraint('id')
|
||||
)
|
||||
op.create_index(op.f('ix_filter_key'), 'filter', ['key'], unique=False)
|
||||
### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_index(op.f('ix_filter_key'), table_name='filter')
|
||||
op.drop_table('filter')
|
||||
### end Alembic commands ###
|
||||
26
migrations/versions/2350803a5a2d_.py
Normal file
26
migrations/versions/2350803a5a2d_.py
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
"""empty message
|
||||
|
||||
Revision ID: 2350803a5a2d
|
||||
Revises: 1ead68a53597
|
||||
Create Date: 2014-05-13 15:43:51.840049
|
||||
|
||||
"""
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '2350803a5a2d'
|
||||
down_revision = '1ead68a53597'
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
def upgrade():
|
||||
### commands auto generated by Alembic - please adjust! ###
|
||||
pass
|
||||
### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
### commands auto generated by Alembic - please adjust! ###
|
||||
pass
|
||||
### end Alembic commands ###
|
||||
36
migrations/versions/7bb11a24276_.py
Normal file
36
migrations/versions/7bb11a24276_.py
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
"""empty message
|
||||
|
||||
Revision ID: 7bb11a24276
|
||||
Revises: 21589282102d
|
||||
Create Date: 2014-05-13 18:28:46.214059
|
||||
|
||||
"""
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '7bb11a24276'
|
||||
down_revision = '21589282102d'
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
def upgrade():
|
||||
### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_table('filter')
|
||||
op.add_column('find', sa.Column('findvalue', sa.Text(), nullable=True))
|
||||
### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('find', 'findvalue')
|
||||
op.create_table('filter',
|
||||
sa.Column('id', sa.INTEGER(), nullable=False),
|
||||
sa.Column('item_id', sa.VARCHAR(length=32), nullable=True),
|
||||
sa.Column('key', sa.VARCHAR(length=200), nullable=True),
|
||||
sa.Column('value', sa.TEXT(), nullable=True),
|
||||
sa.Column('findvalue', sa.TEXT(), nullable=True),
|
||||
sa.ForeignKeyConstraint(['item_id'], [u'item.id'], ),
|
||||
sa.PrimaryKeyConstraint('id')
|
||||
)
|
||||
### end Alembic commands ###
|
||||
Loading…
Add table
Add a link
Reference in a new issue