-
Notifications
You must be signed in to change notification settings - Fork 28
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 #315 from roscisz/develop
R0.3.4
- Loading branch information
Showing
121 changed files
with
15,777 additions
and
10,084 deletions.
There are no files selected for viewing
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
26 changes: 26 additions & 0 deletions
26
migrations/versions/06ce06e9bb85_add_is_cancelled_column_to_the_.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,26 @@ | ||
"""add is_cancelled column to the reservation table | ||
Revision ID: 06ce06e9bb85 | ||
Revises: 9d12594fe87b | ||
Create Date: 2020-09-16 19:08:28.365494 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '06ce06e9bb85' | ||
down_revision = '9d12594fe87b' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
with op.batch_alter_table('reservations') as batch_op: | ||
batch_op.add_column(sa.Column('is_cancelled', sa.Boolean(), nullable=True)) | ||
|
||
|
||
def downgrade(): | ||
with op.batch_alter_table('reservations') as batch_op: | ||
batch_op.drop_column('is_cancelled') |
26 changes: 26 additions & 0 deletions
26
migrations/versions/58a12e45663e_add_hostname_column_to_the_resources_.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,26 @@ | ||
"""Add hostname column to the resources table | ||
Revision ID: 58a12e45663e | ||
Revises: 06ce06e9bb85 | ||
Create Date: 2020-10-20 18:24:40.267394 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '58a12e45663e' | ||
down_revision = '06ce06e9bb85' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
with op.batch_alter_table('resources') as batch_op: | ||
batch_op.add_column(sa.Column('hostname', sa.String(length=64), nullable=True)) | ||
|
||
|
||
def downgrade(): | ||
with op.batch_alter_table('resources') as batch_op: | ||
batch_op.drop_column('hostname') |
26 changes: 26 additions & 0 deletions
26
migrations/versions/7110c972b137_remove_unique_constraint_from_is_.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,26 @@ | ||
"""Remove unique constraint from is_default group column | ||
Revision ID: 7110c972b137 | ||
Revises: 72fb5b78625f | ||
Create Date: 2020-10-26 19:54:49.344197 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '7110c972b137' | ||
down_revision = '72fb5b78625f' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
with op.batch_alter_table('groups') as batch_op: | ||
batch_op.drop_constraint('one_default_group_only', type_='unique') | ||
|
||
|
||
def downgrade(): | ||
with op.batch_alter_table('groups') as batch_op: | ||
batch_op.create_unique_constraint('one_default_group_only', ['is_default']) |
Oops, something went wrong.