aboutsummaryrefslogtreecommitdiffstats
path: root/crates/atuin-server-sqlite/migrations/20240702094825_create-store-idx-cache.sql
diff options
context:
space:
mode:
Diffstat (limited to 'crates/atuin-server-sqlite/migrations/20240702094825_create-store-idx-cache.sql')
-rw-r--r--crates/atuin-server-sqlite/migrations/20240702094825_create-store-idx-cache.sql10
1 files changed, 10 insertions, 0 deletions
diff --git a/crates/atuin-server-sqlite/migrations/20240702094825_create-store-idx-cache.sql b/crates/atuin-server-sqlite/migrations/20240702094825_create-store-idx-cache.sql
new file mode 100644
index 00000000..cd54cb18
--- /dev/null
+++ b/crates/atuin-server-sqlite/migrations/20240702094825_create-store-idx-cache.sql
@@ -0,0 +1,10 @@
+create table store_idx_cache(
+ id integer primary key autoincrement,
+ user_id bigint,
+
+ host uuid,
+ tag text,
+ idx bigint
+);
+
+create unique index store_idx_cache_uniq on store_idx_cache(user_id, host, tag);