Created
March 14, 2019 23:15
-
-
Save camwhite/92e9f6604c5c3c01806802fe54178372 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const trigger = `CREATE TRIGGER post_vector_update BEFORE INSERT OR UPDATE ON "users" FOR EACH ROW EXECUTE PROCEDURE tsvector_update_trigger("post_text", 'pg_catalog.english', ${searchFields.join(', ')})` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment