
CREATE TABLE db_schema (
	id   INTEGER PRIMARY KEY,
	ver  INTEGER,
	up   TEXT,
	down TEXT
);

CREATE TABLE db_schema_log (
	id   INTEGER PRIMARY KEY,
	time INTEGER default (CAST(((julianday('now') - 2440587.5)*86400000) as INTEGER)),
	ver  INTEGER
);

-- Down

DROP TABLE db_schema;
DROP TABLE db_schema_log;

