diff options
Diffstat (limited to 'atuin-client/record-migrations')
| -rw-r--r-- | atuin-client/record-migrations/20230531212437_create-records.sql | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/atuin-client/record-migrations/20230531212437_create-records.sql b/atuin-client/record-migrations/20230531212437_create-records.sql new file mode 100644 index 00000000..46963358 --- /dev/null +++ b/atuin-client/record-migrations/20230531212437_create-records.sql @@ -0,0 +1,15 @@ +-- 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 +); + +create index host_idx on records (host); +create index tag_idx on records (tag); +create index host_tag_idx on records (host, tag); |
