diff options
Diffstat (limited to 'atuin-client/record-migrations/20231127090831_create-store.sql')
-rw-r--r-- | atuin-client/record-migrations/20231127090831_create-store.sql | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/atuin-client/record-migrations/20231127090831_create-store.sql b/atuin-client/record-migrations/20231127090831_create-store.sql new file mode 100644 index 000000000..53d788600 --- /dev/null +++ b/atuin-client/record-migrations/20231127090831_create-store.sql @@ -0,0 +1,15 @@ +-- 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); |