projects
/
eq
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5a48dfd
)
Fixed missing AUTO INCREMENT property on some fields
author
Alan Pippin
<apippin@pippins.net>
Mon, 13 Sep 2010 19:28:29 +0000
(13:28 -0600)
committer
Alan J. Pippin
<ajp@pippins.net>
Mon, 13 Sep 2010 19:28:29 +0000
(13:28 -0600)
bin/upgrade_4_0_to_5_0
patch
|
blob
|
history
diff --git
a/bin/upgrade_4_0_to_5_0
b/bin/upgrade_4_0_to_5_0
index 4fabba93fe5e06c7f37dcebefed88e88b56a0b03..f1952234504a53eeb0be93c2790d1c217ba1b4b6 100755
(executable)
--- a/
bin/upgrade_4_0_to_5_0
+++ b/
bin/upgrade_4_0_to_5_0
@@
-72,7
+72,7
@@
$sth = $dbh->prepare("RENAME TABLE `eq_elder` TO `tc_indiv`");
$sth->execute or die "-E- DB error: $DBI::errstr\n";
# Change elder field in tc_indiv table to indiv
$sth->execute or die "-E- DB error: $DBI::errstr\n";
# Change elder field in tc_indiv table to indiv
-$sth = $dbh->prepare("ALTER TABLE `tc_indiv` CHANGE `elder` `indiv` INT(16)");
+$sth = $dbh->prepare("ALTER TABLE `tc_indiv` CHANGE `elder` `indiv` INT(16)
NOT NULL AUTO_INCREMENT
");
$sth->execute or die "-E- DB error: $DBI::errstr\n";
# Add a new 'birthday' column to the tc_indiv table
$sth->execute or die "-E- DB error: $DBI::errstr\n";
# Add a new 'birthday' column to the tc_indiv table
@@
-128,7
+128,7
@@
$sth = $dbh->prepare("ALTER TABLE `tc_interview` DROP `aaronic`");
$sth->execute or die "-E- DB error: $DBI::errstr\n";
# Change ppi field in tc_interview table to interview
$sth->execute or die "-E- DB error: $DBI::errstr\n";
# Change ppi field in tc_interview table to interview
-$sth = $dbh->prepare("ALTER TABLE `tc_interview` CHANGE `ppi` `interview` INT(16)");
+$sth = $dbh->prepare("ALTER TABLE `tc_interview` CHANGE `ppi` `interview` INT(16)
NOT NULL AUTO_INCREMENT
");
$sth->execute or die "-E- DB error: $DBI::errstr\n";
# Add a new 'interview_type' column to the tc_interview table
$sth->execute or die "-E- DB error: $DBI::errstr\n";
# Add a new 'interview_type' column to the tc_interview table