From: Owen Leonard Date: Mon, 1 Nov 2010 02:29:08 +0000 (-0600) Subject: changed note field in tc_accomplishment to notes X-Git-Url: http://git.pippins.net/embedvideo/.git/static/images/%7Blink_ppi%7D?a=commitdiff_plain;h=HEAD;p=eq%2F.git changed note field in tc_accomplishment to notes --- diff --git a/bin/upgrade_1_1_0_to_1_1_1 b/bin/upgrade_1_1_0_to_1_1_1 index 0337a6e..7936a7d 100755 --- a/bin/upgrade_1_1_0_to_1_1_1 +++ b/bin/upgrade_1_1_0_to_1_1_1 @@ -90,6 +90,9 @@ $sth->execute or die "-E- DB error: $DBI::errstr\n"; $sth = $dbh->prepare("UPDATE tc_interview AS ti JOIN tc_leader AS tl SET ti.interviewer=tl.leader WHERE ti.interviewer=tl.individual"); $sth->execute or die "-E- DB error: $DBI::errstr\n"; +# rename note field in tc_accomplishment to notes +$sth = $dbh->prepare("ALTER TABLE `tc_accomplishment` CHANGE `note` `notes` VARCHAR( 128 ) NOT NULL "); +$sth->execute or die "-E- DB error: $DBI::errstr\n"; print "-> Done!\n"; diff --git a/sql/schema.dot b/sql/schema.dot index b6f961c..8641519 100644 --- a/sql/schema.dot +++ b/sql/schema.dot @@ -75,7 +75,7 @@ digraph schema { shape = "record" ]; accomplishment [ - label = "accomplishment|| accomplishment| individual| date| task| note" + label = "accomplishment|| accomplishment| individual| date| task| notes" shape = "record" ]; task [ diff --git a/sql/tc.jpg b/sql/tc.jpg index f6eef0b..1892487 100644 Binary files a/sql/tc.jpg and b/sql/tc.jpg differ diff --git a/sql/tc.sql b/sql/tc.sql index c54f74e..0829378 100644 --- a/sql/tc.sql +++ b/sql/tc.sql @@ -225,7 +225,7 @@ CREATE TABLE /*!42501 IF NOT EXISTS*/ `tc_accomplishment` ( `individual` INT( 16 ) UNSIGNED NULL DEFAULT NULL , `date` DATE NULL DEFAULT NULL , `task` INT( 16 ) UNSIGNED NULL DEFAULT NULL , - `note` VARCHAR( 128 ) NOT NULL + `notes` VARCHAR( 128 ) NOT NULL ) ENGINE = MYISAM ; --