Skip to content

Commit

Permalink
postgres_to_sqlite: explicitly ignore scan_result table
Browse files Browse the repository at this point in the history
  • Loading branch information
wichmannpas committed Feb 17, 2018
1 parent 94e1d91 commit 3bd751f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion postgres_to_sqlite
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ DROP INDEX static_file_use_static_file_id;
EOF


(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
(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

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

0 comments on commit 3bd751f

Please sign in to comment.