-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
"""add feedback language percentage | ||
Revision ID: 08ddf28cb361 | ||
Revises: 106ff76da94a | ||
Create Date: 2023-08-30 16:38:26.013055 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '08ddf28cb361' | ||
down_revision = '106ff76da94a' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('section', sa.Column('positive_language_percent', sa.Integer(), nullable=True)) | ||
Check failure on line 21 in backend/alembic_files/versions/08ddf28cb361_add_feedback_language_percentage.py GitHub Actions / build (3.8)Ruff (E501)
Check failure on line 21 in backend/alembic_files/versions/08ddf28cb361_add_feedback_language_percentage.py GitHub Actions / build (3.10)Ruff (E501)
|
||
op.add_column('section', sa.Column('constructive_language_percent', sa.Integer(), nullable=True)) | ||
Check failure on line 22 in backend/alembic_files/versions/08ddf28cb361_add_feedback_language_percentage.py GitHub Actions / build (3.8)Ruff (E501)
Check failure on line 22 in backend/alembic_files/versions/08ddf28cb361_add_feedback_language_percentage.py GitHub Actions / build (3.10)Ruff (E501)
|
||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column('section', 'constructive_language_percent') | ||
op.drop_column('section', 'positive_language_percent') | ||
# ### end Alembic commands ### |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
"""change data type to float | ||
Revision ID: 1c3fcbc15477 | ||
Revises: 08ddf28cb361 | ||
Create Date: 2023-08-30 16:58:36.435159 | ||
""" | ||
from alembic import op | ||
Check failure on line 8 in backend/alembic_files/versions/1c3fcbc15477_change_data_type_to_float.py GitHub Actions / build (3.8)Ruff (F401)
|
||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '1c3fcbc15477' | ||
down_revision = '08ddf28cb361' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
pass | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
pass | ||
# ### end Alembic commands ### |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
"""add feedback percentage to the section table | ||
Revision ID: a363f59d034e | ||
Revises: c2010fea1867 | ||
Create Date: 2023-08-31 14:35:41.192691 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'a363f59d034e' | ||
down_revision = 'c2010fea1867' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('section', sa.Column('positive_language_percent', sa.Float(), nullable=True)) | ||
op.add_column('section', sa.Column('constructive_language_percent', sa.Float(), nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column('section', 'constructive_language_percent') | ||
op.drop_column('section', 'positive_language_percent') | ||
# ### end Alembic commands ### |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
"""remove column from table | ||
Revision ID: c2010fea1867 | ||
Revises: 1c3fcbc15477 | ||
Create Date: 2023-08-31 14:35:01.377046 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'c2010fea1867' | ||
down_revision = '1c3fcbc15477' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column('section', 'positive_language_percent') | ||
op.drop_column('section', 'constructive_language_percent') | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('section', sa.Column('constructive_language_percent', sa.INTEGER(), autoincrement=False, nullable=True)) | ||
op.add_column('section', sa.Column('positive_language_percent', sa.INTEGER(), autoincrement=False, nullable=True)) | ||
# ### end Alembic commands ### |