Created
January 4, 2018 12:45
-
-
Save TBSliver/ed25a64f08bd20487ccc29ead7f3ef04 to your computer and use it in GitHub Desktop.
Enable SQL::Translator debugging in a DBIC Schema
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package MySchema; | |
use strict; | |
use warnings; | |
use base qw/ DBIx::Class::Schema /; | |
# insert setup code here... | |
sub sqlt_deploy_hook { | |
my ( $self, $sqlt_schema ) = @_; | |
$sqlt_schema->translator->debugging(1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment