summaryrefslogtreecommitdiff
path: root/lib/VNDBSchema.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/VNDBSchema.pm')
-rw-r--r--lib/VNDBSchema.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/VNDBSchema.pm b/lib/VNDBSchema.pm
index c095550d..94f495b2 100644
--- a/lib/VNDBSchema.pm
+++ b/lib/VNDBSchema.pm
@@ -32,6 +32,8 @@ sub schema {
while(<$F>) {
chomp;
next if /^\s*--/ || /^\s*$/;
+ next if /^\s*CREATE\s+TYPE/;
+ next if /^\s*CREATE\s+SEQUENCE/;
if(/^\s*CREATE\s+TABLE\s+([^ ]+)/) {
die "Unexpected 'CREATE TABLE $1'\n" if $table;
@@ -72,7 +74,7 @@ sub schema {
}
-# Parses types from all.sql and returns a hashref with the following structure:
+# Parses types from schema.sql and returns a hashref with the following structure:
# {
# anime_type => {
# decl => 'CREATE TYPE ..;'