-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SUGGESTED visibility + Project Notification Template (#1992)
* actual date max value for extension event * project notification latest template
- Loading branch information
1 parent
f0ca71f
commit 42cb9f3
Showing
11 changed files
with
131 additions
and
4 deletions.
There are no files selected for viewing
57 changes: 57 additions & 0 deletions
57
epictrack-api/migrations/versions/0ccfa4829660_adding_column_in_action_template_and_.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,57 @@ | ||
"""adding column in action template and configuration | ||
Revision ID: 0ccfa4829660 | ||
Revises: cb80bd4fe249 | ||
Create Date: 2024-03-14 11:55:04.817258 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '0ccfa4829660' | ||
down_revision = 'cb80bd4fe249' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table('action_configurations', schema=None) as batch_op: | ||
batch_op.add_column(sa.Column('description', sa.String(), nullable=True)) | ||
|
||
with op.batch_alter_table('action_configurations_history', schema=None) as batch_op: | ||
batch_op.add_column(sa.Column('description', sa.String(), autoincrement=False, nullable=True)) | ||
|
||
with op.batch_alter_table('action_templates', schema=None) as batch_op: | ||
batch_op.add_column(sa.Column('description', sa.String(), nullable=True)) | ||
|
||
with op.batch_alter_table('action_templates_history', schema=None) as batch_op: | ||
batch_op.add_column(sa.Column('description', sa.String(), autoincrement=False, nullable=True)) | ||
|
||
with op.batch_alter_table('special_fields', schema=None) as batch_op: | ||
batch_op.drop_index('entity_field_index') | ||
batch_op.create_index('entity_field_index', ['entity', 'entity_id', 'field_name', 'time_range'], unique=False) | ||
|
||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table('special_fields', schema=None) as batch_op: | ||
batch_op.drop_index('entity_field_index') | ||
|
||
with op.batch_alter_table('action_templates_history', schema=None) as batch_op: | ||
batch_op.drop_column('description') | ||
|
||
with op.batch_alter_table('action_templates', schema=None) as batch_op: | ||
batch_op.drop_column('description') | ||
|
||
with op.batch_alter_table('action_configurations_history', schema=None) as batch_op: | ||
batch_op.drop_column('description') | ||
|
||
with op.batch_alter_table('action_configurations', schema=None) as batch_op: | ||
batch_op.drop_column('description') | ||
|
||
# ### end Alembic commands ### |
54 changes: 54 additions & 0 deletions
54
epictrack-api/migrations/versions/cb80bd4fe249_adding_suggested_in_visibility_enum.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,54 @@ | ||
"""adding SUGGESTED in visibility enum | ||
Revision ID: cb80bd4fe249 | ||
Revises: 498c9e7f50b6 | ||
Create Date: 2024-03-11 19:52:22.422861 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'cb80bd4fe249' | ||
down_revision = '498c9e7f50b6' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.execute("alter type eventtemplatevisibilityenum add value 'SUGGESTED' after 'HIDDEN'") | ||
with op.batch_alter_table('action_configurations', schema=None) as batch_op: | ||
batch_op.create_foreign_key(None, 'outcome_configurations', ['outcome_configuration_id'], ['id']) | ||
|
||
with op.batch_alter_table('special_fields_history', schema=None) as batch_op: | ||
batch_op.drop_index('entity_field_history_index') | ||
batch_op.drop_index('entity_field_index') | ||
batch_op.create_index('entity_field_index', ['entity', 'entity_id', 'field_name', 'time_range'], unique=False) | ||
|
||
with op.batch_alter_table('works', schema=None) as batch_op: | ||
batch_op.alter_column('simple_title', | ||
existing_type=sa.TEXT(), | ||
type_=sa.String(), | ||
existing_nullable=True) | ||
|
||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table('works', schema=None) as batch_op: | ||
batch_op.alter_column('simple_title', | ||
existing_type=sa.String(), | ||
type_=sa.TEXT(), | ||
existing_nullable=True) | ||
|
||
with op.batch_alter_table('special_fields_history', schema=None) as batch_op: | ||
batch_op.drop_index('entity_field_index') | ||
batch_op.create_index('entity_field_history_index', ['entity', 'entity_id', 'field_name', 'time_range'], unique=False) | ||
|
||
with op.batch_alter_table('action_configurations', schema=None) as batch_op: | ||
batch_op.drop_constraint(None, type_='foreignkey') | ||
|
||
# ### end Alembic commands ### |
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
Binary file added
BIN
+72.2 KB
epictrack-api/src/api/templates/event_templates/assessment/002_EAC_Assessment.xlsx
Binary file not shown.
File renamed without changes.
Binary file added
BIN
+37.2 KB
...-api/src/api/templates/event_templates/project_notification/002_Project_Notification.xlsx
Binary file not shown.
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