-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
The web-UI is typically driven by http server, without permissions to read /etc/resallocserver files or write /var/log/resallocserver. Fixes: fedora-copr/copr#3202
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
""" | ||
Track Pool max value | ||
""" | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
revision = 'b50e3f64fc2d' | ||
Check warning Code scanning / vcs-diff-lint Constant name "revision" doesn't conform to UPPER_CASE naming style Warning
Constant name "revision" doesn't conform to UPPER_CASE naming style
|
||
down_revision = '78237445aff8' | ||
Check warning Code scanning / vcs-diff-lint Constant name "down_revision" doesn't conform to UPPER_CASE naming style Warning
Constant name "down_revision" doesn't conform to UPPER_CASE naming style
|
||
|
||
def upgrade(): | ||
Check warning Code scanning / vcs-diff-lint upgrade: Missing function or method docstring Warning
upgrade: Missing function or method docstring
|
||
with op.batch_alter_table('pools', schema=None) as batch_op: | ||
batch_op.add_column(sa.Column('max', sa.Integer(), nullable=True)) | ||
|
||
def downgrade(): | ||
Check warning Code scanning / vcs-diff-lint downgrade: Missing function or method docstring Warning
downgrade: Missing function or method docstring
|
||
with op.batch_alter_table('pools', schema=None) as batch_op: | ||
batch_op.drop_column('max') |