mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
Still need to figure out how to override the load_user method, currently it is not working.
15 lines
380 B
Python
15 lines
380 B
Python
# revision identifiers, used by Alembic.
|
|
revision = '20_initialise_data'
|
|
down_revision = '10_create_users'
|
|
from app.models import Roles
|
|
from alembic import op
|
|
|
|
def upgrade():
|
|
op.execute("insert into roles(role) values('platform_admin')")
|
|
op.execute("insert into roles(role) values('service_user')")
|
|
|
|
|
|
def downgrade():
|
|
op.drop_table('users')
|
|
op.drop_table('roles')
|