-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c99a1a1
commit 3e0a13b
Showing
3 changed files
with
68 additions
and
2 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
30 changes: 30 additions & 0 deletions
30
alembic/versions/a5c39db3c8e9_add_new_column_test_for_table_keywords.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,30 @@ | ||
"""Add new column test for table keywords | ||
Revision ID: a5c39db3c8e9 | ||
Revises: 5ccd746ee292 | ||
Create Date: 2024-09-12 14:10:26.305593 | ||
""" | ||
from typing import Sequence, Union | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = 'a5c39db3c8e9' | ||
down_revision: Union[str, None] = '5ccd746ee292' | ||
branch_labels: Union[str, Sequence[str], None] = None | ||
depends_on: Union[str, Sequence[str], None] = 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 ### |
34 changes: 34 additions & 0 deletions
34
alembic/versions/af956a85658f_add_new_column_number_of_keywords_.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,34 @@ | ||
"""Add new column number_of_keywords climat/biod/r | ||
Revision ID: af956a85658f | ||
Revises: a5c39db3c8e9 | ||
Create Date: 2024-09-12 14:15:12.049367 | ||
""" | ||
from typing import Sequence, Union | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = 'af956a85658f' | ||
down_revision: Union[str, None] = 'a5c39db3c8e9' | ||
branch_labels: Union[str, Sequence[str], None] = None | ||
depends_on: Union[str, Sequence[str], None] = None | ||
|
||
|
||
def upgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('keywords', sa.Column('number_of_keywords_climat', sa.Integer(), nullable=True)) | ||
op.add_column('keywords', sa.Column('number_of_keywords_biodiversite', sa.Integer(), nullable=True)) | ||
op.add_column('keywords', sa.Column('number_of_keywords_ressources', sa.Integer(), nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column('keywords', 'number_of_keywords_ressources') | ||
op.drop_column('keywords', 'number_of_keywords_biodiversite') | ||
op.drop_column('keywords', 'number_of_keywords_climat') | ||
# ### end Alembic commands ### |
3e0a13b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report