add database scripts for new table template
This commit is contained in:
parent
04ec418c44
commit
d3acd5d823
3 changed files with 28 additions and 0 deletions
|
@ -0,0 +1,10 @@
|
|||
-- name: create-table-template
|
||||
|
||||
CREATE TABLE IF NOT EXISTS template (
|
||||
template_id INTEGER PRIMARY KEY AUTO_INCREMENT
|
||||
,template_name VARCHAR(500)
|
||||
,template_data BLOB
|
||||
,template_created INTEGER
|
||||
,template_updated INTEGER
|
||||
,UNIQUE(template_name)
|
||||
);
|
|
@ -0,0 +1,9 @@
|
|||
-- name: create-table-template
|
||||
|
||||
CREATE TABLE IF NOT EXISTS template (
|
||||
template_id SERIAL PRIMARY KEY
|
||||
,template_name TEXT UNIQUE
|
||||
,template_data BYTEA
|
||||
,template_created INTEGER
|
||||
,template_updated INTEGER
|
||||
);
|
|
@ -0,0 +1,9 @@
|
|||
-- name: create-table-template
|
||||
|
||||
CREATE TABLE IF NOT EXISTS template (
|
||||
template_id INTEGER PRIMARY KEY AUTOINCREMENT
|
||||
,template_name TEXT UNIQUE
|
||||
,template_data BLOB
|
||||
,template_created INTEGER
|
||||
,template_updated INTEGER
|
||||
);
|
Loading…
Reference in a new issue