atuin/atuin-client/record-migrations/20231127090831_create-store.sql

16 lines
417 B
MySQL
Raw Normal View History

2023-11-29 10:11:09 +01:00
-- 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)
2023-12-02 21:24:49 +01:00
host text not null, -- references the host row
tag text not null,
2023-11-29 10:11:09 +01:00
timestamp integer not null,
version text not null,
data blob not null,
2023-12-02 21:24:49 +01:00
cek blob not null
2023-11-29 10:11:09 +01:00
);
2023-12-02 21:24:49 +01:00
create unique index record_uniq ON store(host, tag, idx);