35 lines
836 B
Plaintext
Executable File
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;
|