You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`create table if not exists memories(id text primary key,user_id text,segment integer default 0,content text not null,simhash text,primary_sector text not null,tags text,meta text,created_at integer,updated_at integer,last_seen_at integer,salience real,decay_lambda real,version integer default 1,mean_dim integer,mean_vec blob,compressed_vec blob,feedback_score real default 0)`,
435
437
);
436
438
db.run(
437
-
`create table if not exists vectors(id text not null,sector text not null,user_id text,v blob not null,dim integer not null,primary key(id,sector))`,
439
+
`create table if not exists ${sqlite_vector_table}(id text not null,sector text not null,user_id text,v blob not null,dim integer not null,primary key(id,sector))`,
438
440
);
439
441
db.run(
440
442
`create table if not exists waypoints(src_id text,dst_id text not null,user_id text,weight real not null,created_at integer,updated_at integer,primary key(src_id,user_id))`,
@@ -470,7 +472,7 @@ if (is_pg) {
470
472
"create index if not exists idx_memories_user on memories(user_id)",
471
473
);
472
474
db.run(
473
-
"create index if not exists idx_vectors_user on vectors(user_id)",
475
+
`create index if not exists idx_vectors_user on ${sqlite_vector_table}(user_id)`,
474
476
);
475
477
db.run(
476
478
"create index if not exists idx_waypoints_src on waypoints(src_id)",
0 commit comments