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 4200 Jul 5, 2002, 1:48 PM
Thread Re: [tamwub] several column addition
yogi 4092 Jul 5, 2002, 2:10 PM
Thread Re: [yogi] several column addition
tamwub 4087 Jul 5, 2002, 4:17 PM
Thread Re: [tamwub] several column addition
yogi 4072 Jul 6, 2002, 4:10 AM
Post Re: [yogi] several column addition
tamwub 4057 Jul 6, 2002, 12:52 PM
Thread Re: [tamwub] several column addition
Ian 4103 Jul 5, 2002, 6:39 PM
Post Re: [Ian] several column addition
tamwub 4052 Jul 6, 2002, 12:59 PM