-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #166 from mozilla-services/feat/165
feat: add dynamic_settings table for on-the-fly ops config
- Loading branch information
Showing
4 changed files
with
96 additions
and
3 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
tokenserver/assignment/sqlnode/migrations/versions/5d056c5b8f57_create_dyn_settings_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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
"""create dyn_settings table | ||
Revision ID: 5d056c5b8f57 | ||
Revises: 75e8ca84b0bc | ||
Create Date: 2020-01-06 08:16:15.546054 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '5d056c5b8f57' | ||
down_revision = '75e8ca84b0bc' | ||
|
||
|
||
def upgrade(): | ||
op.create_table( | ||
'dynamic_settings', | ||
sa.Column('setting', sa.String(100), primary_key=True), | ||
sa.Column('value', sa.String(255), nullable=False), | ||
sa.Column('description', sa.String(255)) | ||
) | ||
|
||
|
||
def downgrade(): | ||
op.drop_table('dynamic_settings') | ||
pass |
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