Skip to content

Commit 3560c71

Browse files
authored
Add missing migration for OIDCPublisherProjectAssociation constraint (#18381)
1 parent 603e784 commit 3560c71

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
"""
3+
Add OIDCPublisherProjectAssociation constraint
4+
5+
Revision ID: 30c837b1425a
6+
Revises: 082def83d89f
7+
Create Date: 2025-07-17 17:53:57.897999
8+
"""
9+
10+
from alembic import op
11+
12+
revision = "30c837b1425a"
13+
down_revision = "082def83d89f"
14+
15+
16+
def upgrade():
17+
op.create_unique_constraint(
18+
None, "oidc_publisher_project_association", ["oidc_publisher_id", "project_id"]
19+
)
20+
21+
22+
def downgrade():
23+
op.drop_constraint(None, "oidc_publisher_project_association", type_="unique")

0 commit comments

Comments
 (0)