JonWasTaken
04/19/2022, 3:55 AMdb error: ERROR: malformed array literal: ""
Here's the SQL, anyone know why it would be causing this error?
ALTER TABLE props ADD COLUMN textSearch tsvector GENERATED ALWAYS AS (
setweight(to_tsvector('english', coalesce(name, "")), "A") ||
setweight(to_tsvector('english', coalesce(terms,"")), "B")
) STORED;
CREATE INDEX props_textsearch_idx ON props USING GIN (textSearch);
Needle
04/19/2022, 3:55 AM/title
command!
We have solved your problem?
Click the button below to archive it.garyaustin
04/19/2022, 4:01 AMNeedle
04/19/2022, 4:01 AMJonWasTaken
04/19/2022, 4:05 AMALTER TABLE props ADD COLUMN textSearch tsvector GENERATED ALWAYS AS (
setweight(to_tsvector('english', coalesce(name, '')), 'A') ||
setweight(to_tsvector('english', coalesce(terms,'')), 'B')
) STORED;
JonWasTaken
04/19/2022, 4:05 AMError: P3006
Migration `20220419004549_add_full_text_search_to_prop` failed to apply cleanly to the shadow database.
Error:
db error: ERROR: malformed array literal: ""
DETAIL: Array value must start with "{" or dimension information.
0: sql_migration_connector::validate_migrations
at migration-engine\connectors\sql-migration-connector\src\lib.rs:271
1: migration_core::state::DevDiagnostic
at migration-engine\core\src\state.rs:248
garyaustin
04/19/2022, 4:05 AMJonWasTaken
04/19/2022, 4:07 AMnpx prisma migrate dev
with that sql in the migration.sql file, but I tried using the supabase console directly and received the same errorgaryaustin
04/19/2022, 4:11 AMJonWasTaken
04/19/2022, 4:14 AM