1 |
4080
|
daigle
|
/*
|
2 |
|
|
* db_version -- table to store the version history of this database
|
3 |
|
|
*/
|
4 |
|
|
CREATE SEQUENCE db_version_id_seq;
|
5 |
|
|
CREATE TABLE db_version (
|
6 |
|
|
db_version_id INT8 default nextval ('db_version_id_seq'), -- the identifier for the version
|
7 |
|
|
version VARCHAR(250), -- the version number
|
8 |
|
|
status INT8, -- status of the version
|
9 |
|
|
date_created TIMESTAMP, -- the datetime on which the version was created
|
10 |
|
|
CONSTRAINT db_version_pk PRIMARY KEY (db_version_id)
|
11 |
|
|
);
|
12 |
|
|
|
13 |
|
|
INSERT INTO db_version (version, status, date_created)
|
14 |
|
|
VALUES ('1.9.0', 1, CURRENT_DATE);
|