wiki.techinc.nl/maintenance/postgres/archives/patch-querycache_info-pk.sql
Ammar Abdulhamid 6599e5706c Migrate querycache_info to abstract schema
Additional changes for Postgres:
 - Set empty string as default for qci_type
 - Set PG-equivalent of the given MySql/Sqlite timestamp as
   default timestamp for qci_timestamp
 - Make qci_type non nullable
 - Make qci_timestamp non nullable
 - Drop UNIQUE constraint on qci_type

Bug: T230428
Bug: T164898
Depends-On: If344395615087c360597a5b3d66ea03e930b7d9b
Change-Id: I741d2d079696d4b4eba09945341054d2a145bddc
2020-10-20 08:18:03 +01:00

3 lines
104 B
SQL

ALTER TABLE querycache_info
DROP CONSTRAINT querycache_info_qci_type_key,
ADD PRIMARY KEY (qci_type);