diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 119602605..557d1b3c0 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -22,6 +22,7 @@ - fixed #11064: spelling error - fixed #11062: subscriptionCode - fixed #11061: SQLForm_fieldOrder + - fixed #11066: wrong definitions 7.8.0 - upgraded YUI to 2.8.0r4 diff --git a/docs/upgrades/upgrade_7.8.0-7.8.1.pl b/docs/upgrades/upgrade_7.8.0-7.8.1.pl index a4cce2523..1e2dc633b 100644 --- a/docs/upgrades/upgrade_7.8.0-7.8.1.pl +++ b/docs/upgrades/upgrade_7.8.0-7.8.1.pl @@ -34,6 +34,7 @@ fixWikis( $session ); fixEMSTemplates( $session ); removeOldSubscriptionTables( $session ); removeSQLFormTables( $session ); +fixBadRevisionDateColumns( $session ); finish($session); # this line required @@ -47,6 +48,18 @@ finish($session); # this line required # print "DONE!\n" unless $quiet; #} +# Describe what our function does +sub fixBadRevisionDateColumns { + my $session = shift; + print "\tGive all revisionDate columns the correct definition... " unless $quiet; + $session->db->write("ALTER TABLE Event MODIFY COLUMN revisionDate BIGINT NOT NULL DEFAULT 0"); + $session->db->write("ALTER TABLE Calendar MODIFY COLUMN revisionDate BIGINT NOT NULL DEFAULT 0"); + $session->db->write("ALTER TABLE MultiSearch MODIFY COLUMN revisionDate BIGINT NOT NULL DEFAULT 0"); + $session->db->write("ALTER TABLE Dashboard MODIFY COLUMN revisionDate BIGINT NOT NULL DEFAULT 0"); + $session->db->write("ALTER TABLE StockData MODIFY COLUMN revisionDate BIGINT NOT NULL DEFAULT 0"); + print "Done.\n" unless $quiet; +} + # Describe what our function does sub removeSQLFormTables { my $session = shift;