We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4d141dc + d79a95a commit cc2d8d8Copy full SHA for cc2d8d8
aidbox_python_sdk/db_migrations.py
@@ -27,7 +27,7 @@
27
FOR e IN (
28
SELECT table_name
29
FROM information_schema.columns
30
- WHERE column_name = 'txid' AND table_schema = 'public' AND table_name NOT LIKE '%\\_history' ESCAPE '\\'
+ WHERE column_name = 'txid' AND table_schema = 'public' AND table_name !~ '_history$'
31
) LOOP
32
EXECUTE 'DELETE FROM "' || e.table_name || '" WHERE txid > ' || $1 ;
33
END LOOP;
0 commit comments