Separating Thing object from Thingy
This commit is contained in:
parent
2987ed44bc
commit
3d88789659
4 changed files with 542 additions and 263 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue