We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It is a question about commit 31395a9 (HEAD) Date: Thu Mar 14 19:33:27 2019 +0000
I have a stable script for manipulation with DB versions. It has a user menu (Term::Menu) and it is wrote in this style for run user choice:
if ( $answer eq 'status' ) { DBIx::Class::Migration::Script->run_with_options( schema => Tsystem->model('TsystemDB')->schema, argv => ['status'] ); } elsif ( $answer eq 'prepare' ) { DBIx::Class::Migration::Script->run_with_options( schema => Tsystem->model('TsystemDB')->schema, argv => ['-O', 'prepare'] ); } elsif ( $answer eq 'install' ) { my $version = $prompt->question("Which version to install? "); if ( eval $version ) { DBIx::Class::Migration::Script->run_with_options( schema => Tsystem->model('TsystemDB')->schema, argv => ['install', '--to_version', $version] ); } else { DBIx::Class::Migration::Script->run_with_options( schema => Tsystem->model('TsystemDB')->schema, argv => ['install'] ); } } elsif ( $answer eq 'upgrade' ) { my $version = $prompt->question("Which version upgrade to? "); if ( eval $version ) { DBIx::Class::Migration::Script->run_with_options( schema => Tsystem->model('TsystemDB')->schema, argv => ['upgrade', '--to_version', $version] ); } else { DBIx::Class::Migration::Script->run_with_options( schema => Tsystem->model('TsystemDB')->schema, argv => ['upgrade'] ); } } elsif ( $answer eq 'downgrade' ) { ............
How can I modify my script for new version DBIx::Class::Migration::Script the best way?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It is a question about commit 31395a9 (HEAD)
Date: Thu Mar 14 19:33:27 2019 +0000
I have a stable script for manipulation with DB versions. It has a user menu (Term::Menu) and it is wrote in this style for run user choice:
if ( $answer eq 'status' ) { DBIx::Class::Migration::Script->run_with_options( schema => Tsystem->model('TsystemDB')->schema, argv => ['status'] ); } elsif ( $answer eq 'prepare' ) { DBIx::Class::Migration::Script->run_with_options( schema => Tsystem->model('TsystemDB')->schema, argv => ['-O', 'prepare'] ); } elsif ( $answer eq 'install' ) { my $version = $prompt->question("Which version to install? "); if ( eval $version ) { DBIx::Class::Migration::Script->run_with_options( schema => Tsystem->model('TsystemDB')->schema, argv => ['install', '--to_version', $version] ); } else { DBIx::Class::Migration::Script->run_with_options( schema => Tsystem->model('TsystemDB')->schema, argv => ['install'] ); } } elsif ( $answer eq 'upgrade' ) { my $version = $prompt->question("Which version upgrade to? "); if ( eval $version ) { DBIx::Class::Migration::Script->run_with_options( schema => Tsystem->model('TsystemDB')->schema, argv => ['upgrade', '--to_version', $version] ); } else { DBIx::Class::Migration::Script->run_with_options( schema => Tsystem->model('TsystemDB')->schema, argv => ['upgrade'] ); } } elsif ( $answer eq 'downgrade' ) { ............
How can I modify my script for new version DBIx::Class::Migration::Script the best way?
The text was updated successfully, but these errors were encountered: