summaryrefslogtreecommitdiff
path: root/util/sqleditfunc.pl
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-09-17 11:45:42 +0200
committerYorhel <git@yorhel.nl>2019-09-17 11:48:38 +0200
commit158825be34b6987c18fcdf80da4d05aee5900be6 (patch)
treeb30a7ef502280af87b0bb3418a3a433f7ba6c441 /util/sqleditfunc.pl
parent3999549a305581966a353e07cae5ea7a9c191d80 (diff)
Rename VNDBSchema to VNDB::Schema and let it figure out the root path itself
I always avoided using the VNDB::* schema for non-web related utility modules, but thats pretty silly (especially as I'm slowly trying to move away from the old VNDB::* web code).
Diffstat (limited to 'util/sqleditfunc.pl')
-rwxr-xr-xutil/sqleditfunc.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/sqleditfunc.pl b/util/sqleditfunc.pl
index 0d1749a2..3375136a 100755
--- a/util/sqleditfunc.pl
+++ b/util/sqleditfunc.pl
@@ -9,9 +9,9 @@ our $ROOT;
BEGIN { ($ROOT = abs_path $0) =~ s{/util/sqleditfunc\.pl$}{}; }
use lib "$ROOT/lib";
-use VNDBSchema;
+use VNDB::Schema;
-my $schema = VNDBSchema::schema("$ROOT/util/sql/schema.sql");
+my $schema = VNDB::Schema::schema;
my $template = join '', <DATA>;
sub gensql {