kemono2/db/migrations/20240223_00_ASDAS-reset_relation_id_seq.py
2024-07-04 21:57:05 +02:00

11 lines
226 B
Python

from yoyo import step
__depends__ = {"20240221_03_Cgdrp-create-unapproved-link-requests"}
steps = [
step("""
UPDATE lookup SET relation_id = NULL;
ALTER SEQUENCE lookup_relation_id_seq RESTART WITH 1;
""")
]