mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 19:51:29 +00:00
Update repository-generator.pl
This commit is contained in:
parent
cbd2336442
commit
494811c04b
@ -1,13 +1,15 @@
|
||||
#!/usr/bin/perl
|
||||
use warnings FATAL => 'all';
|
||||
no warnings 'experimental::smartmatch';
|
||||
use experimental 'smartmatch';
|
||||
|
||||
# Author: Akkadius
|
||||
# @file: repository-generator.pl
|
||||
# @description: Script used to generate database repositories
|
||||
# @example perl ~/code/utils/scripts/generators/repository-generator.pl ~/server/
|
||||
|
||||
#############################################
|
||||
# modules
|
||||
#############################################
|
||||
use warnings FATAL => 'all';
|
||||
no warnings 'experimental::smartmatch';
|
||||
use experimental 'smartmatch';
|
||||
use File::Find;
|
||||
use Data::Dumper;
|
||||
use DBI;
|
||||
@ -49,6 +51,9 @@ if (!-e $config_path) {
|
||||
exit;
|
||||
}
|
||||
|
||||
#############################################
|
||||
# fetch schema from world
|
||||
#############################################
|
||||
my $output = `cd $server_path && $found_world_path database:schema`;
|
||||
my $database_schema = $json->decode($output);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user