Skip to content
Snippets Groups Projects
Commit c57c41e9 authored by Jean-Laurent DUZANT's avatar Jean-Laurent DUZANT
Browse files

FIX #19580 TIME 0 fix conflicts from 21.03

parent e039ec8d
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,20 @@
-- --
-- *************************************************************************--
DROP TABLE IF EXISTS blacklist;
CREATE TABLE blacklist
(
id SERIAL PRIMARY KEY,
term CHARACTER VARYING(128) UNIQUE NOT NULL
)
WITH (OIDS=FALSE);
CREATE OR REPLACE VIEW bad_notes AS
SELECT *
FROM notes
WHERE unaccent(note_text) ~* concat('\m(', array_to_string(array((select unaccent(term) from blacklist)), '|', ''), ')\M');
-- Create a sequence and set value for each chronos found in parameters table
DO $$
DECLARE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment