Created
January 28, 2020 14:02
-
-
Save jjn1056/5bf66c393b0eaedd35eb2fb1e98958da to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Liminal::Schema::Result::Person; | |
use strict; | |
use warnings; | |
use base 'Liminal::Schema::Result'; | |
__PACKAGE__->table("person"); | |
__PACKAGE__->load_components(qw/EncodedColumn /); | |
__PACKAGE__->add_columns( | |
id => { data_type => 'bigserial', is_nullable => 0, is_auto_increment => 1 }, | |
username => { data_type => 'varchar', is_nullable => 0, size => 48 }, | |
email => { data_type => 'varchar', is_nullable => 0, size => 48 }, | |
password => { | |
data_type => 'varchar', | |
is_nullable => 0, | |
size => 64, | |
encode_column => 1, | |
encode_class => 'Digest', | |
encode_args => { algorithm => 'MD5', format => 'base64' }, | |
}, | |
); | |
__PACKAGE__->set_primary_key("id"); | |
1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When running a migration Fia App::DH I get