X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sql%2Fdbicdump_command.sh;h=c957f8f10d7c4b007d4681e8fc7df662408643b3;hb=eeaa1c6b4d90ed620b53e92efef377446c0b9e8b;hp=b56ad6866d3019f562fa17e4d0b5169d08ec14a7;hpb=6091f73ce65064a2876ba44253a6335e5208f3d9;p=debbugs.git diff --git a/sql/dbicdump_command.sh b/sql/dbicdump_command.sh index b56ad68..c957f8f 100755 --- a/sql/dbicdump_command.sh +++ b/sql/dbicdump_command.sh @@ -1,12 +1,18 @@ #!/bin/sh +if [ -z "$DEBBUGS_SERVICE" ]; then + DEBBUGS_SERVICE="debbugs"; +fi; + if ! [ -d "sql" ] || ! [ -d "Debbugs" ]; then echo "In the wrong directory" exit 1; fi; dbicdump -I. -o dump_directory=. \ - -o components='["InflateColumn::DateTime"]' \ + -o components='["InflateColumn::DateTime","TimeStamp"]' \ -o preserve_case=1 \ - Debbugs::DB dbi:Pg:service=debbugs '' ''; + -o skip_load_external=1 \ + -o exclude='qr/^dbix_class_deploymenthandler_versions$/' \ + Debbugs::DB dbi:Pg:service=$DEBBUGS_SERVICE '' '';