summaryrefslogtreecommitdiffstats
path: root/bin/db_upgrade
diff options
context:
space:
mode:
authorLibravatarJanik Kleinhoff <ilbelkyr@shalture.org>2017-02-22 00:36:20 +0000
committerLibravatarJanik Kleinhoff <ilbelkyr@shalture.org>2017-02-22 00:36:20 +0000
commit3660ffad11192fdb4c23ea71f23c9d39f2a20715 (patch)
treeda376bebfbf0eb8aae955858f24a8a7d6e7632d3 /bin/db_upgrade
parentd6aa209d1920ced98f4ef074c0ee09c35d203534 (diff)
Misc. code cleanup
Diffstat (limited to 'bin/db_upgrade')
-rwxr-xr-xbin/db_upgrade24
1 files changed, 11 insertions, 13 deletions
diff --git a/bin/db_upgrade b/bin/db_upgrade
index fc424ae..b1cb133 100755
--- a/bin/db_upgrade
+++ b/bin/db_upgrade
@@ -11,21 +11,19 @@ use ASM::DB;
use Getopt::Long;
use DBIx::Class::DeploymentHandler;
-GetOptions(
- 'config|c=s' => \$::cset,
-);
-if ($::cset eq '') { $::cset = 'config-default'; }
-else { $::cset = "config-$::cset"; }
+GetOptions( 'config|c=s' => \$::cset );
+if ( $::cset eq '' ) { $::cset = 'config-default'; }
+else { $::cset = "config-$::cset"; }
ASM::Config->readConfig();
-my $schema = ASM::DB->connect($::mysql->{dsn}, $::mysql->{user}, $::mysql->{pass});
+my $schema = ASM::DB->connect( $::mysql->{dsn}, $::mysql->{user}, $::mysql->{pass} );
-my $dh = DBIx::Class::DeploymentHandler->new({
- schema => $schema,
- schema_version => '' . $schema->schema_version,
- sql_translator_args => { add_drop_table => 0, quote_identifiers => 1 },
- databases => [],
- ignore_ddl => 1,
- });
+my $dh = DBIx::Class::DeploymentHandler->new( {
+ schema => $schema,
+ schema_version => '' . $schema->schema_version,
+ sql_translator_args => { add_drop_table => 0, quote_identifiers => 1 },
+ databases => [],
+ ignore_ddl => 1,
+} );
$dh->upgrade;