discourse/migrations/db/uploads_db_schema/100-base-schema.sql

19 lines
322 B
SQL

CREATE TABLE uploads
(
id TEXT PRIMARY KEY NOT NULL,
upload JSON_TEXT,
markdown TEXT,
skip_reason TEXT
);
CREATE TABLE optimized_images
(
id TEXT PRIMARY KEY NOT NULL,
optimized_images JSON_TEXT
);
CREATE TABLE downloads (
id TEXT PRIMARY KEY NOT NULL,
original_filename TEXT NOT NULL
);