-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #704 from eddieferrer/add_shoes_Jan2023
added new shoes
- Loading branch information
Showing
1 changed file
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
"""new shoes jan2023 | ||
Revision ID: 15d014361866 | ||
Revises: 0ab059fb0421 | ||
Create Date: 2023-01-31 17:42:12.446005 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '15d014361866' | ||
down_revision = '0ab059fb0421' | ||
|
||
from alembic import op | ||
from sqlalchemy.sql import table, column | ||
from sqlalchemy import String, Integer | ||
|
||
def upgrade(): | ||
# Create an ad-hoc table to use for the insert statement. | ||
item_table = table('item', | ||
column('model', String), | ||
column('brand_id', Integer), | ||
column('gender_id', Integer), | ||
column('small_image_url', String), | ||
column('medium_image_url', String), | ||
column('type', String) | ||
) | ||
|
||
# 28|unparallel|US | ||
op.bulk_insert( | ||
item_table, [ | ||
{'model': 'up-rise pro', 'brand_id': '28', | ||
'gender_id': '3', 'type': 'rock'}, | ||
{'model': 'up pivot', 'brand_id': '28', | ||
'gender_id': '3', 'type': 'rock'}, | ||
{'model': 'souped up', 'brand_id': '28', | ||
'gender_id': '3', 'type': 'rock'}, | ||
{'model': 'engage lace', 'brand_id': '28', | ||
'gender_id': '3', 'type': 'rock'}, | ||
{'model': 'flagship lv', 'brand_id': '28', | ||
'gender_id': '2', 'type': 'rock'}, | ||
{'model': 'flagship', 'brand_id': '28', | ||
'gender_id': '1', 'type': 'rock'}, | ||
{'model': 'tn pro lv', 'brand_id': '28', | ||
'gender_id': '2', 'type': 'rock'}, | ||
{'model': 'tn pro', 'brand_id': '28', | ||
'gender_id': '1', 'type': 'rock'}, | ||
]) | ||
|
||
# 1|evolv|US | ||
op.bulk_insert( | ||
item_table, [ | ||
{'model': 'yosemite bum', 'brand_id': '1', | ||
'gender_id': '1', 'type': 'rock'}, | ||
{'model': 'yosemite bum lv', 'brand_id': '1', | ||
'gender_id': '2', 'type': 'rock'}, | ||
]) | ||
|
||
# 3|la sportiva|EUR | ||
op.bulk_insert( | ||
item_table, [ | ||
{'model': 'quantix SF', 'brand_id': '3', | ||
'gender_id': '1', 'type': 'rock'}, | ||
{'model': 'quantix SF', 'brand_id': '3', | ||
'gender_id': '2', 'type': 'rock'}, | ||
{'model': 'mantra', 'brand_id': '3', | ||
'gender_id': '3', 'type': 'rock'}, | ||
]) | ||
|
||
# 7|tenaya|US | ||
op.bulk_insert( | ||
item_table, [ | ||
{'model': 'indalo', 'brand_id': '7', | ||
'gender_id': '3', 'type': 'rock'}, | ||
]) | ||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
pass | ||
# ### end Alembic commands ### |