Gossamer Forum
Quote Reply
Add Column
Is there a way just to add columns to a table using the creator subclass?

I don't seem to be able to do it without dropping the table and losing the data, ie...

my $existing_cols = $DB->table('Links')->cols;

my $new_table = $DB->creator('Links');

$new_table->cols( %$existing_cols, %$new_cols );

$new_table->create("force") or return Plugins::MyPlugin->error("Bla...");

Last edited by:

RedRum: Feb 24, 2002, 8:48 AM
Subject Author Views Date
Thread Add Column Paul 3614 Feb 24, 2002, 8:47 AM
Thread Re: [RedRum] Add Column
Paul 3465 Feb 24, 2002, 8:56 AM
Thread Re: [RedRum] Add Column
Paul 3467 Feb 24, 2002, 9:15 AM
Thread Re: [RedRum] Add Column
Paul 3466 Feb 24, 2002, 9:22 AM
Thread Re: [RedRum] Add Column
Paul 3440 Feb 24, 2002, 9:41 AM
Thread Re: [RedRum] Add Column
Alex 3456 Feb 25, 2002, 12:01 PM
Post Re: [Alex] Add Column
Paul 3418 Feb 25, 2002, 12:27 PM