|
1 | 1 | -- 'Row-level filter (conditional sync) test' |
2 | 2 |
|
3 | | -\set testid '20' |
| 3 | +\set testid '26' |
4 | 4 | \ir helper_test_init.sql |
5 | 5 |
|
6 | 6 | -- Create first database |
7 | 7 | \connect postgres |
8 | 8 | \ir helper_psql_conn_setup.sql |
9 | | -DROP DATABASE IF EXISTS cloudsync_test_1; |
10 | | -CREATE DATABASE cloudsync_test_1; |
| 9 | +DROP DATABASE IF EXISTS cloudsync_test_26_a; |
| 10 | +CREATE DATABASE cloudsync_test_26_a; |
11 | 11 |
|
12 | | -\connect cloudsync_test_1 |
| 12 | +\connect cloudsync_test_26_a |
13 | 13 | \ir helper_psql_conn_setup.sql |
14 | 14 | CREATE EXTENSION IF NOT EXISTS cloudsync; |
15 | 15 |
|
@@ -64,10 +64,10 @@ WHERE site_id = cloudsync_siteid() \gset |
64 | 64 |
|
65 | 65 | \connect postgres |
66 | 66 | \ir helper_psql_conn_setup.sql |
67 | | -DROP DATABASE IF EXISTS cloudsync_test_2; |
68 | | -CREATE DATABASE cloudsync_test_2; |
| 67 | +DROP DATABASE IF EXISTS cloudsync_test_26_b; |
| 68 | +CREATE DATABASE cloudsync_test_26_b; |
69 | 69 |
|
70 | | -\connect cloudsync_test_2 |
| 70 | +\connect cloudsync_test_26_b |
71 | 71 | \ir helper_psql_conn_setup.sql |
72 | 72 | CREATE EXTENSION IF NOT EXISTS cloudsync; |
73 | 73 | CREATE TABLE tasks (id TEXT PRIMARY KEY NOT NULL, title TEXT, user_id INTEGER); |
@@ -98,8 +98,8 @@ SELECT (:fail::int + 1) AS fail \gset |
98 | 98 | -- Cleanup |
99 | 99 | \ir helper_test_cleanup.sql |
100 | 100 | \if :should_cleanup |
101 | | -DROP DATABASE IF EXISTS cloudsync_test_1; |
102 | | -DROP DATABASE IF EXISTS cloudsync_test_2; |
| 101 | +DROP DATABASE IF EXISTS cloudsync_test_26_a; |
| 102 | +DROP DATABASE IF EXISTS cloudsync_test_26_b; |
103 | 103 | \else |
104 | 104 | \echo [INFO] !!!!! |
105 | 105 | \endif |
0 commit comments