mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
108536490: Adding the login manager and csrf token.
Still need to figure out how to override the load_user method, currently it is not working.
This commit is contained in:
@@ -1,15 +1,13 @@
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '20_initialise_data'
|
||||
down_revision = None
|
||||
|
||||
down_revision = '10_create_users'
|
||||
from app.models import Roles
|
||||
from alembic import op
|
||||
|
||||
def upgrade():
|
||||
op.bulk_insert('roles',
|
||||
[
|
||||
{'role': 'plaform_admin'},
|
||||
{'role': 'service_user'}
|
||||
])
|
||||
op.execute("insert into roles(role) values('platform_admin')")
|
||||
op.execute("insert into roles(role) values('service_user')")
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.drop_table('users')
|
||||
|
||||
Reference in New Issue
Block a user