From a768a252af3b3b278f2fc055ade3880d7fcb9c41 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 19 Sep 2016 19:43:24 -0700 Subject: [PATCH] (stable) Add a default value for messageCount so writes from old tiers survive the update query Auditors: chad --- resources/sql/autopatches/20160919.repo.messagedefault.sql | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 resources/sql/autopatches/20160919.repo.messagedefault.sql diff --git a/resources/sql/autopatches/20160919.repo.messagedefault.sql b/resources/sql/autopatches/20160919.repo.messagedefault.sql new file mode 100644 index 0000000000..0c8b84d44a --- /dev/null +++ b/resources/sql/autopatches/20160919.repo.messagedefault.sql @@ -0,0 +1,2 @@ +ALTER TABLE {$NAMESPACE}_repository.repository_statusmessage + CHANGE messageCount messageCount INT UNSIGNED NOT NULL DEFAULT 0;