TT#23277 change lnp_number type from enum to string

Change-Id: Ic9358f8b41b6447bea0c0107bf77039b85df848a
changes/83/16183/2
Rene Krenn 8 years ago
parent e7178d07ff
commit 37939b5ca1

@ -249,17 +249,9 @@ __PACKAGE__->add_columns(
is_nullable => 0, is_nullable => 0,
}, },
"source_lnp_type", "source_lnp_type",
{ { data_type => "varchar", is_nullable => 1, size => 255 },
data_type => "enum",
extra => { list => ["fixed","mobile"] },
is_nullable => 1,
},
"destination_lnp_type", "destination_lnp_type",
{ { data_type => "varchar", is_nullable => 1, size => 255 },
data_type => "enum",
extra => { list => ["fixed","mobile"] },
is_nullable => 1,
},
); );
@ -324,7 +316,7 @@ __PACKAGE__->belongs_to(
"$args->{foreign_alias}.uuid" => { -ident => "$args->{self_alias}.destination_user_id" }, "$args->{foreign_alias}.uuid" => { -ident => "$args->{self_alias}.destination_user_id" },
"$args->{foreign_alias}.uuid" => { -ident => "$args->{self_alias}.source_user_id" }, "$args->{foreign_alias}.uuid" => { -ident => "$args->{self_alias}.source_user_id" },
]}; ]};
}, },
{ cascade_copy => 0, cascade_delete => 0, join_type => 'left' } { cascade_copy => 0, cascade_delete => 0, join_type => 'left' }
); );

@ -40,11 +40,7 @@ __PACKAGE__->add_columns(
is_nullable => 1, is_nullable => 1,
}, },
"type", "type",
{ { data_type => "varchar", is_nullable => 1, size => 255 },
data_type => "enum",
extra => { list => ["fixed","mobile"] },
is_nullable => 1,
},
); );
__PACKAGE__->set_primary_key("id"); __PACKAGE__->set_primary_key("id");

Loading…
Cancel
Save