2023-06-14 14:18:24 -06:00
|
|
|
-- Add migration script here
|
|
|
|
create table if not exists records (
|
|
|
|
id text primary key,
|
|
|
|
parent text unique, -- null if this is the first one
|
|
|
|
host text not null,
|
|
|
|
|
|
|
|
timestamp integer not null,
|
|
|
|
tag text not null,
|
|
|
|
version text not null,
|
2023-07-14 13:44:08 -06:00
|
|
|
data blob not null,
|
|
|
|
cek blob not null
|
2023-06-14 14:18:24 -06:00
|
|
|
);
|
|
|
|
|
|
|
|
create index host_idx on records (host);
|
|
|
|
create index tag_idx on records (tag);
|
|
|
|
create index host_tag_idx on records (host, tag);
|