25 lines
502 B
Python
25 lines
502 B
Python
"""Fingerprint Index
|
|
|
|
Revision ID: 48af31eb6f3f
|
|
Revises: 12262aadbc08
|
|
Create Date: 2023-08-07 13:01:05.401492
|
|
|
|
"""
|
|
|
|
from alembic import op
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = "48af31eb6f3f"
|
|
down_revision = "12262aadbc08"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
op.create_unique_constraint(op.f("uq_fingerprints_date"), "fingerprints", ["date", "employee_id"])
|
|
|
|
|
|
def downgrade():
|
|
op.drop_constraint(op.f("uq_fingerprints_date"), "fingerprints", type_="unique")
|