Gossamer Forum
Quote Reply
several column addition
 
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?

Last edited by:

tamwub: Jul 5, 2002, 1:55 PM
Subject Author Views Date
Thread several column addition tamwub 3497 Jul 5, 2002, 1:48 PM
Thread Re: [tamwub] several column addition
yogi 3412 Jul 5, 2002, 2:10 PM
Thread Re: [yogi] several column addition
tamwub 3412 Jul 5, 2002, 4:17 PM
Thread Re: [tamwub] several column addition
yogi 3392 Jul 6, 2002, 4:10 AM
Post Re: [yogi] several column addition
tamwub 3382 Jul 6, 2002, 12:52 PM
Thread Re: [tamwub] several column addition
Ian 3428 Jul 5, 2002, 6:39 PM
Post Re: [Ian] several column addition
tamwub 3377 Jul 6, 2002, 12:59 PM