mirror of
https://github.com/atuinsh/atuin.git
synced 2025-01-10 08:18:48 +01:00
95cc472037
I'd like to tidy up the root a little, and it's nice to have all the rust crates in one place
17 lines
419 B
SQL
17 lines
419 B
SQL
-- 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,
|
|
data blob not null,
|
|
cek blob not null
|
|
);
|
|
|
|
create index host_idx on records (host);
|
|
create index tag_idx on records (tag);
|
|
create index host_tag_idx on records (host, tag);
|