mirror of
https://github.com/atuinsh/atuin.git
synced 2024-11-25 01:34:13 +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
16 lines
417 B
SQL
16 lines
417 B
SQL
-- Add migration script here
|
|
create table if not exists store (
|
|
id text primary key, -- globally unique ID
|
|
|
|
idx integer, -- incrementing integer ID unique per (host, tag)
|
|
host text not null, -- references the host row
|
|
tag text not null,
|
|
|
|
timestamp integer not null,
|
|
version text not null,
|
|
data blob not null,
|
|
cek blob not null
|
|
);
|
|
|
|
create unique index record_uniq ON store(host, tag, idx);
|