File tree Expand file tree Collapse file tree 3 files changed +25
-1
lines changed
Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 1+ ## 0.1.25
2+
3+ - Fix drop_before_all test fixture to properly exclude history tables using regex pattern
4+
15## 0.1.24
26
37- Fix build
Original file line number Diff line number Diff line change 11__title__ = "aidbox-python-sdk"
2- __version__ = "0.1.24 "
2+ __version__ = "0.1.25 "
33__author__ = "beda.software"
44__license__ = "None"
55__copyright__ = "Copyright 2024 beda.software"
Original file line number Diff line number Diff line change 2020 "sql" : """
2121DROP FUNCTION IF EXISTS drop_before_all(integer);
2222
23+ CREATE FUNCTION drop_before_all(integer) RETURNS VOID AS $$
24+ declare
25+ e record;
26+ BEGIN
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'
31+ ) LOOP
32+ EXECUTE 'DELETE FROM "' || e.table_name || '" WHERE txid > ' || $1 ;
33+ END LOOP;
34+ END;
35+
36+ $$ LANGUAGE plpgsql;""" ,
37+ },
38+ {
39+ "id" : "20251209_fix_drop_before_all_history" ,
40+ "sql" : """
41+ DROP FUNCTION IF EXISTS drop_before_all(integer);
42+
2343CREATE FUNCTION drop_before_all(integer) RETURNS VOID AS $$
2444declare
2545e record;
You can’t perform that action at this time.
0 commit comments