[server] DB migration scripts for emedding table changes

This commit is contained in:
Neeraj Gupta 2024-03-19 10:30:32 +05:30
parent f0236acf8f
commit 7634b2c153
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,3 @@
ALTER TABLE embeddings
DROP COLUMN IF EXISTS size,
DROP COLUMN IF EXISTS version;

View file

@ -0,0 +1,4 @@
ALTER TYPE model ADD VALUE IF NOT EXISTS 'file-ml-clip-face';
ALTER TABLE embeddings
ADD COLUMN size int DEFAULT NULL,
ADD COLUMN version int DEFAULT 1;