14 lines
321 B
PL/PgSQL
14 lines
321 B
PL/PgSQL
-- Deploy fotostore:albums to sqlite
|
|
|
|
BEGIN;
|
|
|
|
CREATE TABLE albums (
|
|
album_id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
name STRING NOT NULL,
|
|
description TEXT,
|
|
created DATETIME DEFAULT (CURRENT_TIMESTAMP),
|
|
modified DATETIME DEFAULT (CURRENT_TIMESTAMP),
|
|
deleted BOOLEAN
|
|
);
|
|
|
|
COMMIT;
|