mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 15:46:07 -05:00
Add service permissions DAO and refactor user service permission mock
This commit is contained in:
@@ -1 +1,7 @@
|
||||
Generic single-database configuration.
|
||||
Generic single-database configuration.
|
||||
|
||||
python application.py db migration to generate migration script.
|
||||
|
||||
python application.py db upgrade to upgrade db with script.
|
||||
|
||||
python application.py db downgrade to rollback db changes.
|
||||
|
||||
@@ -15,10 +15,10 @@ import sqlalchemy as sa
|
||||
from sqlalchemy.dialects import postgresql
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
service_permission_types = op.create_table('service_permission_types',
|
||||
sa.Column('name', sa.String(length=255), nullable=False),
|
||||
sa.PrimaryKeyConstraint('name'))
|
||||
### commands auto generated by Alembic - please adjust! ###
|
||||
service_permission_types=op.create_table('service_permission_types',
|
||||
sa.Column('name', sa.String(length=255), nullable=False),
|
||||
sa.PrimaryKeyConstraint('name'))
|
||||
|
||||
op.bulk_insert(service_permission_types,
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user