From 327387474460fb32cc4531c181c753bb50d0716e Mon Sep 17 00:00:00 2001 From: epriestley Date: Thu, 21 Aug 2014 09:23:48 -0700 Subject: [PATCH] Fix an issue with build generations not being set for strict MySQL Summary: Target creation fatals otherwise ('buildGeneration' may not be NULL) Auditors: hach-que --- .../harbormaster/storage/build/HarbormasterBuild.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/applications/harbormaster/storage/build/HarbormasterBuild.php b/src/applications/harbormaster/storage/build/HarbormasterBuild.php index d90cac554f..e6849ac17d 100644 --- a/src/applications/harbormaster/storage/build/HarbormasterBuild.php +++ b/src/applications/harbormaster/storage/build/HarbormasterBuild.php @@ -127,7 +127,8 @@ final class HarbormasterBuild extends HarbormasterDAO public static function initializeNewBuild(PhabricatorUser $actor) { return id(new HarbormasterBuild()) - ->setBuildStatus(self::STATUS_INACTIVE); + ->setBuildStatus(self::STATUS_INACTIVE) + ->setBuildGeneration(0); } public function delete() {