Files
qt5-legatus-legacy/Lts/Tools/DBUpdate/updates/1.00_create_db_version_tables.upd
T
2026-08-13 18:33:10 +02:00

35 lines
836 B
Plaintext
Executable File

-- $Id$
-- $HeadURL$
-- $Author$
-------------------------------------------------------------------------
-- INFO: Create db_version table for all existent DB schemas
-- PROJECT: ALL
-- DATE: 2021-02-10
-- VERSION: 1.00
-------------------------------------------------------------------------
-- GLOBAL: ALL;
BEGIN;
CREATE TABLE IF NOT EXISTS db_version (
id serial,
description text,
version text,
updated bigint DEFAULT (extract(epoch from now()) * 1000),
success boolean DEFAULT true,
message text
);
COMMIT;
-- EXERCISE: ALL;
BEGIN;
CREATE TABLE IF NOT EXISTS db_version (
id serial,
description text,
version text,
updated bigint DEFAULT (extract(epoch from now()) * 1000),
success boolean DEFAULT true,
message text
);
COMMIT;