diff options
author | Yorhel <git@yorhel.nl> | 2021-02-24 10:28:56 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2021-02-24 15:07:48 +0100 |
commit | 76c24137126832513614c58b16372b9b0342c0de (patch) | |
tree | 6aab4c12e62bd4441500addb2758305d88c2bbb5 /lib/VNDB | |
parent | 530a9a65f90001678f3340dff5edc155cafec827 (diff) |
dbdump.pl: Add export-data command to dump everything
Roughly similar to 'pg_dump --data-only', but with added includes for
sql/ scripts, without the SET commands (these will cause the includes to
fail) and with a "free" built-in CLUSTER on the primary key for most
tables.
Diffstat (limited to 'lib/VNDB')
-rw-r--r-- | lib/VNDB/Schema.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Schema.pm b/lib/VNDB/Schema.pm index 2d6eb6f5..63c0f258 100644 --- a/lib/VNDB/Schema.pm +++ b/lib/VNDB/Schema.pm @@ -48,7 +48,7 @@ sub schema { } elsif(/^\s*\);/) { $table = undef; - } elsif(/^\s+CHECK/) { + } elsif(/^\s+(?:CHECK|CONSTRAINT)/) { # ignore } elsif($table && /^\s+PRIMARY\s+KEY\s*\(([^\)]+)\)/i) { |