-
-
Save bimmerlabs/dcf86bfa57a7dd25858539ceaacd81d3 to your computer and use it in GitHub Desktop.
add a column using Mojo::PG::Migrations
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
sub add_column { | |
my ($self, $tablename) = @_; | |
$self->bimmerlabs->migrations->from_string( | |
"-- 2 up | |
alter table $tablename; | |
add column number bigint | |
-- 2 down | |
does something need to be here?" | |
)->migrate; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment