Separating Thing object from Thingy

This commit is contained in:
Yung Han Khoe 2009-11-16 17:37:18 +01:00
parent 2987ed44bc
commit 3d88789659
4 changed files with 542 additions and 263 deletions

View file

@ -57,6 +57,11 @@ sub changeThingyThingTables {
my $session = shift;
my $db = $session->db;
print "\tChanging Thingy's Thing tables to conform with CRUD ... " unless $quiet;
$db->write('ALTER TABLE Thingy_things ADD `sequencenumber` INT(11)');
$db->write('ALTER TABLE Thingy_things ADD `dateCreated` DATETIME');
$db->write('ALTER TABLE Thingy_things ADD `lastUpdated` DATETIME');
my $things = $db->read('select thingId from Thingy_things');
while (my @thing = $things->array) {
my $tableName = 'Thingy_'.$thing[0];