-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
572 additions
and
448 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
42 changes: 22 additions & 20 deletions
42
alembic/versions/7debef0e3f50_create_initial_school_table.py
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 |
---|---|---|
@@ -1,45 +1,47 @@ | ||
"""create initial school table | ||
Revision ID: 7debef0e3f50 | ||
Revises: | ||
Revises: | ||
Create Date: 2020-02-01 16:18:24.795672 | ||
""" | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '7debef0e3f50' | ||
revision = "7debef0e3f50" | ||
down_revision = None | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.create_table('schools', | ||
sa.Column('id', sa.String(), nullable=False), | ||
sa.Column('name', sa.String(), nullable=True), | ||
sa.Column('address', sa.String(), nullable=True), | ||
sa.Column('address2', sa.String(), nullable=True), | ||
sa.Column('zip', sa.String(), nullable=True), | ||
sa.Column('city', sa.String(), nullable=True), | ||
sa.Column('website', sa.String(), nullable=True), | ||
sa.Column('email', sa.String(), nullable=True), | ||
sa.Column('school_type', sa.String(), nullable=True), | ||
sa.Column('legal_status', sa.String(), nullable=True), | ||
sa.Column('provider', sa.String(), nullable=True), | ||
sa.Column('fax', sa.String(), nullable=True), | ||
sa.Column('phone', sa.String(), nullable=True), | ||
sa.Column('director', sa.String(), nullable=True), | ||
sa.Column('raw', sa.JSON(), nullable=True), | ||
sa.PrimaryKeyConstraint('id') | ||
op.create_table( | ||
"schools", | ||
sa.Column("id", sa.String(), nullable=False), | ||
sa.Column("name", sa.String(), nullable=True), | ||
sa.Column("address", sa.String(), nullable=True), | ||
sa.Column("address2", sa.String(), nullable=True), | ||
sa.Column("zip", sa.String(), nullable=True), | ||
sa.Column("city", sa.String(), nullable=True), | ||
sa.Column("website", sa.String(), nullable=True), | ||
sa.Column("email", sa.String(), nullable=True), | ||
sa.Column("school_type", sa.String(), nullable=True), | ||
sa.Column("legal_status", sa.String(), nullable=True), | ||
sa.Column("provider", sa.String(), nullable=True), | ||
sa.Column("fax", sa.String(), nullable=True), | ||
sa.Column("phone", sa.String(), nullable=True), | ||
sa.Column("director", sa.String(), nullable=True), | ||
sa.Column("raw", sa.JSON(), nullable=True), | ||
sa.PrimaryKeyConstraint("id"), | ||
) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_table('schools') | ||
op.drop_table("schools") | ||
# ### end Alembic commands ### |
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
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
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
from .jsonpipeline import JsonPipeline | ||
from .school_pipeline import SchoolPipeline | ||
from .db_pipeline import DatabasePipeline | ||
|
||
from .jsonpipeline import JsonPipeline as JsonPipeline | ||
from .school_pipeline import SchoolPipeline as SchoolPipeline | ||
from .db_pipeline import DatabasePipeline as DatabasePipeline |
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
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
Oops, something went wrong.