-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add extended_login option to intentionally stop PD during login.
- Loading branch information
Showing
7 changed files
with
79 additions
and
22 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
alembic/versions/b533c33be802_add_device_and_devicepool_options_for_.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,28 @@ | ||
"""Add device and devicepool options for extended login | ||
Revision ID: b533c33be802 | ||
Revises: 73063d78ff1c | ||
Create Date: 2024-02-10 11:36:15.733010 | ||
""" | ||
import sqlalchemy as sa | ||
|
||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'b533c33be802' | ||
down_revision = '73063d78ff1c' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
op.add_column('settings_device', sa.Column('extended_login', sa.BOOLEAN(), | ||
server_default=sa.text("'0'"), nullable=False)) | ||
op.add_column('settings_devicepool', sa.Column('extended_login', sa.BOOLEAN(), | ||
server_default=sa.text("'0'"), nullable=False)) | ||
|
||
|
||
def downgrade(): | ||
op.drop_column('settings_device', 'extended_login') | ||
op.drop_column('settings_devicepool', 'extended_login') |
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
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