git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4_0@12507
dcc99617-32d9-48b4-a31d-
7c20da2025e4
$count++;
}
+for my $hint (@order) {
+ next if (grep { $_ eq $hint} @auto);
+ next unless ($fieldcache{$hint}{sequence});
+ $main_out->print("SELECT setval('$fieldcache{$hint}{sequence}'::TEXT, (SELECT MAX($fieldcache{$hint}{pkey}) FROM $fieldcache{$hint}{table}), TRUE);\n\n");
+}
+
if (grep /^mfr$/, %out_files) {
$main_out->print("SELECT reporter.enable_materialized_simple_record_trigger();\n");
}
+
$main_out->print("COMMIT;\n\n");
$main_out->close;
+