12 lines
447 B
SQL
12 lines
447 B
SQL
-- +goose Up
|
|
-- Drop the legacy single-dimension embeddings column (was NOT NULL) to allow inserts
|
|
-- that now use embedding_384 / embedding_1536. All new data goes into those columns.
|
|
ALTER TABLE sentence_embeddings
|
|
DROP COLUMN IF EXISTS embeddings;
|
|
|
|
-- +goose Down
|
|
-- Re-create the legacy embeddings column (empty) as vector(1536) NULLABLE for rollback.
|
|
ALTER TABLE sentence_embeddings
|
|
ADD COLUMN IF NOT EXISTS embeddings vector(1536);
|
|
|