Files
query-orchestration/database/migrations/20250103132852_query_deprecation_table.up.sql
T

8 lines
263 B
SQL
Raw Normal View History

2025-01-03 13:41:07 +00:00
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)
);