Files
lutim/utilities/migrations/postgresql.sql
Luc Didry 883004b7b6 Use random Initialization Vector for encryption
+ now use Mojo::SQLite instead of ORLite

This commit is dedicated to Antonio Ferreira, who is supporting me with Ǧ1.
Many thanks :-)
2018-03-09 16:53:38 +01:00

25 lines
666 B
SQL

-- 1 up
CREATE TABLE IF NOT EXISTS lutim (
short text PRIMARY KEY,
path text default null,
footprint text default null,
enabled integer,
mediatype text default null,
filename text default null,
counter integer default 0,
delete_at_first_view integer default null,
delete_at_day integer default null,
created_at integer default null,
created_by text default null,
last_access_at integer default null,
mod_token text default null,
width integer default null,
height integer default null
);
-- 1 down
DROP TABLE lutim;
-- 2 up
ALTER TABLE lutim ADD COLUMN iv text;
-- 2 down
ALTER TABLE lutim DROP COLUMN iv;