Files
query-orchestration/database/migrations/20250103132852_query_deprecation_table.up.sql
T
Michael McGuinness 788b21594c creatorupdatordeprecate
2025-01-07 13:54:41 +00:00

8 lines
263 B
SQL

CREATE TABLE queryDeprecations (
id uuid primary key DEFAULT gen_random_uuid(),
queryId uuid not null,
time timestamp not null DEFAULT NOW(),
removedAt timestamp,
foreign key (queryId) references queries(id),
unique (queryId, removedAt)
);