Subject: | MSSQL _table_uniq_info detection incorrect |
I just had an issue when upgrading from 4999_10 to 5003 that for mysql,
the unique info is being incorrectly detected. As I don't need it, I
just overrode the function to not return anything. The issue was to do
with capitalization. The code generated was:
__PACKAGE__->add_columns(
"email",
{
data_type => "nvarchar",
default_value => undef,
is_nullable => 0,
size => 200,
},
"name",
{
data_type => "nvarchar",
default_value => undef,
is_nullable => 0,
size => 200,
},
"password",
{
data_type => "nvarchar",
default_value => undef,
is_nullable => 1,
size => 200,
},
);
__PACKAGE__->set_primary_key("email", "name");
__PACKAGE__->add_unique_constraint("PK_NavMigUKNonAtlas", ["Email",
"Name"]);
Which then err'd because the unique constraint columns of Email and Name
didn't exist (as they have been incorrectly capitalized). Not sure why
it's loading both a unique constraint and a pk though.
Mark