-
Notifications
You must be signed in to change notification settings - Fork 5
/
bc3dd5c62a9e_.py
55 lines (48 loc) · 1.79 KB
/
bc3dd5c62a9e_.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
"""empty message
Revision ID: bc3dd5c62a9e
Revises: None
Create Date: 2016-06-26 08:23:42.413609
"""
# revision identifiers, used by Alembic.
revision = 'bc3dd5c62a9e'
down_revision = None
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
def upgrade():
### commands auto generated by Alembic - please adjust! ###
op.create_table('jobs_master',
sa.Column('uuid', sa.String(), nullable=False),
sa.Column('onet_soc_code', sa.String(), nullable=True),
sa.Column('title', sa.String(), nullable=True),
sa.Column('description', sa.String(), nullable=True),
sa.PrimaryKeyConstraint('uuid')
)
op.create_table('skills_master',
sa.Column('uuid', sa.String(), nullable=False),
sa.Column('onet_soc_code', sa.String(), nullable=True),
sa.Column('onet_element_id', sa.String(), nullable=True),
sa.Column('skill_name', sa.String(), nullable=True),
sa.Column('count', sa.Integer(), nullable=True),
sa.PrimaryKeyConstraint('uuid')
)
op.create_table('skills_related',
sa.Column('uuid', sa.String(), nullable=False),
sa.Column('related_skills', postgresql.JSONB(), nullable=True),
sa.PrimaryKeyConstraint('uuid')
)
op.create_table('jobs_alternate_titles',
sa.Column('uuid', sa.String(), nullable=False),
sa.Column('title', sa.String(), nullable=True),
sa.Column('job_uuid', sa.String(), nullable=True),
sa.ForeignKeyConstraint(['job_uuid'], ['jobs_master.uuid'], ),
sa.PrimaryKeyConstraint('uuid')
)
### end Alembic commands ###
def downgrade():
### commands auto generated by Alembic - please adjust! ###
op.drop_table('jobs_alternate_titles')
op.drop_table('skills_related')
op.drop_table('skills_master')
op.drop_table('jobs_master')
### end Alembic commands ###