for plugin i'm developing I need add two columns to Links table
I do it by
my $e = $DB->editor('Links');
$e->add_col('OutgoingHits',
{
size => 20,
type => 'int',
view_size => 20,
nice_name => "OutgoingHits",
regex => '^\d+$'
}
);
$e->add_col('IncomingHits',<br>
{
size => 20,
type => 'int',
view_size => 20,
nice_name => "IncomingHits",
regex => '^\d+$',
}
);
this code works
but in .def file I see the following
'OutgoingHits' => {
'form_size' => '10',
'form_type' => 'TEXT',
'nice_name' => 'OutgoingHits',
'pos' => '21',
'regex' => '^\d+$',
'size' => '20',
'type' => 'int',
'view_size' => '20'
},
'Link_Status' => {
'default' => '0',
'form_display' => 'Link Status',
'form_size' => '5',
'form_type' => 'INT',
'not_null' => '0',
'pos' => '21',
'type' => 'INT',
'unsigned' => '0',
'zerofill' => '0'
},
'IncomingHits' => {
'form_size' => '10',
'form_type' => 'TEXT',
'nice_name' => 'IncomingHits',
'pos' => '22',
'regex' => '^\d+$',
'size' => '20',
'type' => 'int',
'view_size' => '20'
}
see?
there is two columns with the same pos
Link_Status (existing before) and OutgoingHits - new one I've created
this case link edit page not to show OutgoingHits poperty for edit
does anybody know why?