chir.rs/chir-rs-db/migrations/20241123151924_add-file-table.sql

10 lines
279 B
MySQL
Raw Normal View History

2024-11-26 07:41:01 +00:00
-- Add migration script here
create table 'file' (
id integer primary key not null,
file_path text not null,
mime text not null,
b3hash blob not null
);
create unique index file_path_mime on 'file' (file_path, mime);
create index file_path on 'file' (file_path);