feature: pq迁移新增citext扩展

This commit is contained in:
梁真铭 2024-12-26 18:10:32 +08:00
parent 0ee76d3c92
commit b1027ef885
2 changed files with 2 additions and 0 deletions

View File

@ -1 +1,2 @@
DROP EXTENSION IF EXISTS citext;
DROP TABLE IF EXISTS movies; DROP TABLE IF EXISTS movies;

View File

@ -1,3 +1,4 @@
CREATE EXTENSION IF NOT EXISTS citext;
CREATE TABLE IF NOT EXISTS movies ( CREATE TABLE IF NOT EXISTS movies (
id bigserial PRIMARY KEY, id bigserial PRIMARY KEY,
created_at timestamp(0) with time zone NOT NULL DEFAULT NOW(), created_at timestamp(0) with time zone NOT NULL DEFAULT NOW(),