Skip to content

Commit 3bd751f

Browse files
committed
postgres_to_sqlite: explicitly ignore scan_result table
1 parent 94e1d91 commit 3bd751f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

postgres_to_sqlite

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ DROP INDEX static_file_use_static_file_id;
2020
EOF
2121

2222

23-
(echo "BEGIN TRANSACTION;" && (sudo -iu postgres pg_dump $POSTGRES_DB --column-inserts --data-only | sed "s/^SE.*$//" | sed "s/ true);$/1);/" | sed "s/ false);$/0);/") && echo "END TRANSACTION;") | pv | sqlite3 $SQLITE_DB
23+
(echo "BEGIN TRANSACTION;" && (sudo -iu postgres pg_dump $POSTGRES_DB -T scan_result --column-inserts --data-only | sed "s/^SE.*$//" | sed "s/ true);$/1);/" | sed "s/ false);$/0);/") && echo "END TRANSACTION;") | pv | sqlite3 $SQLITE_DB
2424

2525
# Convert hex checksums from dump to actual binary values and fix software package alternative names
2626
python3 -c "exec('''

0 commit comments

Comments
 (0)