Skip to content

Commit b8e253a

Browse files
migration
1 parent 681c88f commit b8e253a

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
"""make project owner mandatory
2+
3+
Revision ID: d26057a0f693
4+
Revises: 10729e07000d
5+
Create Date: 2024-10-02 15:30:20.377698+00:00
6+
7+
"""
8+
from alembic import op
9+
10+
# revision identifiers, used by Alembic.
11+
revision = "d26057a0f693"
12+
down_revision = "10729e07000d"
13+
branch_labels = None
14+
depends_on = None
15+
16+
17+
def upgrade():
18+
# ### commands auto generated by Alembic - please adjust! ###
19+
op.alter_column("projects", "prj_owner", nullable=False)
20+
# ### end Alembic commands ###
21+
22+
23+
def downgrade():
24+
# ### commands auto generated by Alembic - please adjust! ###
25+
op.alter_column("projects", "prj_owner", nullable=True)
26+
# ### end Alembic commands ###

0 commit comments

Comments
 (0)