[server] DB migration scripts for emedding table changes
This commit is contained in:
parent
f0236acf8f
commit
7634b2c153
2 changed files with 7 additions and 0 deletions
3
server/migrations/81_embeddings_type_and_size.down.sql
Normal file
3
server/migrations/81_embeddings_type_and_size.down.sql
Normal file
|
@ -0,0 +1,3 @@
|
|||
ALTER TABLE embeddings
|
||||
DROP COLUMN IF EXISTS size,
|
||||
DROP COLUMN IF EXISTS version;
|
4
server/migrations/81_embeddings_type_and_size.up.sql
Normal file
4
server/migrations/81_embeddings_type_and_size.up.sql
Normal 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;
|
Loading…
Reference in a new issue