2021-12-27 17:33:26 +00:00
|
|
|
-- +goose Up
|
|
|
|
CREATE TABLE IF NOT EXISTS public.db_version (
|
|
|
|
singleton BOOLEAN NOT NULL DEFAULT TRUE UNIQUE CHECK (singleton),
|
2021-12-27 19:52:52 +00:00
|
|
|
version TEXT NOT NULL,
|
|
|
|
tstamp TIMESTAMP WITHOUT TIME ZONE DEFAULT NOW()
|
2021-12-27 17:33:26 +00:00
|
|
|
);
|
|
|
|
|
2023-02-17 20:26:21 +00:00
|
|
|
INSERT INTO public.db_version (singleton, version) VALUES (true, 'v5.0.0')
|
|
|
|
ON CONFLICT (singleton) DO UPDATE SET (version, tstamp) = ('v5.0.0', NOW());
|
|
|
|
|
2021-12-27 17:33:26 +00:00
|
|
|
-- +goose Down
|
|
|
|
DROP TABLE public.db_version;
|