Files
pocket-id-pocket-id-2/backend/resources/migrations/sqlite/20251110000000_storage_table.up.sql

15 lines
328 B
MySQL
Raw Normal View History

PRAGMA foreign_keys=OFF;
BEGIN;
-- The "storage" table contains file data stored in the database
CREATE TABLE storage
(
path TEXT NOT NULL PRIMARY KEY,
data BLOB NOT NULL,
size INTEGER NOT NULL,
mod_time DATETIME NOT NULL,
created_at DATETIME NOT NULL
);
COMMIT;
PRAGMA foreign_keys=ON;