Hi,
I've changed it to:
my $editor = $DB->table ('Links');
unless ($editor->add_col ( 'Review', { type => 'TEXT' }) {
$Plugins::Pluginname::error = "Unable to add column to Links: $GT::SQL::error";
return;
}
}Or is this a little confusing (the chaining of functions) and I should spell it out a little more.
Cheers,
Alex
--
Gossamer Threads Inc.
I've changed it to:
Code:
unless (exists $DB->table('Links')->cols->{'Review'}) { my $editor = $DB->table ('Links');
unless ($editor->add_col ( 'Review', { type => 'TEXT' }) {
$Plugins::Pluginname::error = "Unable to add column to Links: $GT::SQL::error";
return;
}
}
Cheers,
Alex
--
Gossamer Threads Inc.