-
Notifications
You must be signed in to change notification settings - Fork 31
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
a2435b0
commit cb798d7
Showing
4 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
apptax/migrations/versions/6a20cd1055ec_drop_bib_themes_id_droit_column.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,29 @@ | ||
"""Drop bib_themes.id_droit column | ||
Revision ID: 6a20cd1055ec | ||
Revises: 44447746cacc | ||
Create Date: 2024-08-28 15:38:36.829167 | ||
""" | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = "6a20cd1055ec" | ||
down_revision = "44447746cacc" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
op.drop_column(table_name="bib_themes", column_name="id_droit", schema="taxonomie") | ||
|
||
|
||
def downgrade(): | ||
op.add_column( | ||
table_name="bib_themes", | ||
column=sa.Column("id_droit", sa.Integer, nullable=False, server_default=0), | ||
schema="taxonomie", | ||
) |
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