Backend fixed and features
This commit is contained in:
@ -30,6 +30,7 @@ def upgrade() -> None:
|
||||
sa.Column("deleted_at", sa.DateTime(timezone=True), nullable=True)
|
||||
)
|
||||
batch_op.add_column(sa.Column("parent_id", sa.Uuid(), nullable=True))
|
||||
batch_op.drop_constraint("uq_client_name")
|
||||
batch_op.create_unique_constraint("uq_client_name_version", ["name", "version"])
|
||||
batch_op.create_foreign_key(
|
||||
"fk_client_parent", "client", ["parent_id"], ["id"], ondelete="SET NULL"
|
||||
|
||||
Reference in New Issue
Block a user