Files
lutim/utilities/migrations/sqlite.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

24 lines
645 B
SQL

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