Skip to content

Commit 9f03b79

Browse files
committed
Stable dump timestamp
1 parent dee897b commit 9f03b79

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

__tests__/schema.sql

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -376,23 +376,23 @@ ALTER TABLE graphile_worker._private_known_crontabs ENABLE ROW LEVEL SECURITY;
376376
ALTER TABLE graphile_worker._private_tasks ENABLE ROW LEVEL SECURITY;
377377
SELECT pg_catalog.set_config('search_path', '', false);
378378
COPY graphile_worker.migrations (id, ts, breaking) FROM stdin;
379-
1 2025-06-10 12:04:24.070122+01 t
380-
2 2025-06-10 12:04:24.104214+01 f
381-
3 2025-06-10 12:04:24.113671+01 t
382-
4 2025-06-10 12:04:24.116167+01 f
383-
5 2025-06-10 12:04:24.119419+01 f
384-
6 2025-06-10 12:04:24.121693+01 f
385-
7 2025-06-10 12:04:24.137432+01 f
386-
8 2025-06-10 12:04:24.139854+01 f
387-
9 2025-06-10 12:04:24.153728+01 f
388-
10 2025-06-10 12:04:24.155443+01 f
389-
11 2025-06-10 12:04:24.157855+01 t
390-
12 2025-06-10 12:04:24.258834+01 f
391-
13 2025-06-10 12:04:24.261754+01 t
392-
14 2025-06-10 12:04:24.263805+01 t
393-
15 2025-06-10 12:04:24.265574+01 f
394-
16 2025-06-10 12:04:24.267217+01 t
395-
17 2025-06-10 12:04:24.270686+01 f
396-
18 2025-06-10 12:04:24.272704+01 f
397-
19 2025-06-10 12:04:24.274531+01 t
379+
1 1970-01-01 00:00:00.000000+00 t
380+
2 1970-01-01 00:00:00.000000+00 f
381+
3 1970-01-01 00:00:00.000000+00 t
382+
4 1970-01-01 00:00:00.000000+00 f
383+
5 1970-01-01 00:00:00.000000+00 f
384+
6 1970-01-01 00:00:00.000000+00 f
385+
7 1970-01-01 00:00:00.000000+00 f
386+
8 1970-01-01 00:00:00.000000+00 f
387+
9 1970-01-01 00:00:00.000000+00 f
388+
10 1970-01-01 00:00:00.000000+00 f
389+
11 1970-01-01 00:00:00.000000+00 t
390+
12 1970-01-01 00:00:00.000000+00 f
391+
13 1970-01-01 00:00:00.000000+00 t
392+
14 1970-01-01 00:00:00.000000+00 t
393+
15 1970-01-01 00:00:00.000000+00 f
394+
16 1970-01-01 00:00:00.000000+00 t
395+
17 1970-01-01 00:00:00.000000+00 f
396+
18 1970-01-01 00:00:00.000000+00 f
397+
19 1970-01-01 00:00:00.000000+00 t
398398
\.

scripts/dump_db

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ psql template1 -c "CREATE USER graphile_worker_role WITH SUPERUSER PASSWORD 'pas
77
createdb graphile_worker_dump -O graphile_worker_role
88
PGUSER=graphile_worker_role PGPASSWORD=password PGHOST=127.0.0.1 ts-node src/cli.ts -c postgres:///graphile_worker_dump --schema-only
99
pg_dump --schema-only --no-owner graphile_worker_dump | sed -E -e '/^--/d' -e '/^\s*$/d' -e '/^SET /d' -e 's/EXECUTE FUNCTION/EXECUTE PROCEDURE/g' -e '/^(REVOKE|GRANT) .* ON SCHEMA public (FROM|TO) PUBLIC;$/d' > __tests__/schema.sql
10-
pg_dump --data-only --no-owner graphile_worker_dump --table=graphile_worker.migrations --table=graphile_worker._private_pro_migrations | sed -E -e '/^--/d' -e '/^\s*$/d' -e 's/\b2[0-9]{3}-[0-9]{2}-[0-9]{2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{1,6}\+00/1970-01-01 00:00:00.000000+00/g' -e '/^SET /d' >> __tests__/schema.sql
10+
pg_dump --data-only --no-owner graphile_worker_dump --table=graphile_worker.migrations --table=graphile_worker._private_pro_migrations | sed -E -e '/^--/d' -e '/^\s*$/d' -e 's/\b2[0-9]{3}-[0-9]{2}-[0-9]{2}\s[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{1,6}\+[0-9]+/1970-01-01 00:00:00.000000+00/g' -e '/^SET /d' >> __tests__/schema.sql
1111
dropdb graphile_worker_dump
1212
dropuser graphile_worker_role

0 commit comments

Comments
 (0)