changed note field in tc_accomplishment to notes master owenleonard/django_db_prep
authorOwen Leonard <owen@balawis.leonard.fam>
Mon, 1 Nov 2010 02:29:08 +0000 (20:29 -0600)
committerOwen Leonard <owen@balawis.leonard.fam>
Mon, 1 Nov 2010 02:29:08 +0000 (20:29 -0600)
bin/upgrade_1_1_0_to_1_1_1
sql/schema.dot
sql/tc.jpg
sql/tc.sql

index 0337a6e2564c6b283b38d0d389aa9115cf7e1a56..7936a7dfc6e374d2cb6b7083dd53843b2d374300 100755 (executable)
@@ -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";
 
index b6f961c3737f82eca05d817fb69b6916c08e9e43..864151927d8725dca218328b54d04f147d4783ab 100644 (file)
@@ -75,7 +75,7 @@ digraph schema {
     shape = "record"
   ];
   accomplishment   [
-    label = "accomplishment||<a> accomplishment|<i> individual|<d> date|<t> task|<n> note"
+    label = "accomplishment||<a> accomplishment|<i> individual|<d> date|<t> task|<n> notes"
     shape = "record"
   ];
   task   [
index f6eef0bd807fa440b70e16b89b9ef12091362ddb..1892487724f618a6a3cfc4836c17437016f95310 100644 (file)
Binary files a/sql/tc.jpg and b/sql/tc.jpg differ
index c54f74e7dcd5fa4abd5d5366f04e9b91d3514afe..0829378bb9c6eee9aba64eefa8fb2d681a96c12d 100644 (file)
@@ -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 ;
 
 --