From 8d79c7282da3277d1995a0ad846f00b3ed9fbfbf Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 18 Feb 2013 11:51:42 -0800 Subject: [PATCH] Accommodate long daemon command lines Summary: Fixes T2559 with an incredibly original patch which I came up with myself. Test Plan: $ ./bin/storage upgrade -f Applying patch 'phabricator:20130218.longdaemon.sql'... Storage is up to date. Use 'storage status' for details. Reviewers: edward Reviewed By: edward CC: aran Maniphest Tasks: T2559 Differential Revision: https://secure.phabricator.com/D5006 --- resources/sql/patches/20130218.longdaemon.sql | 2 ++ .../storage/patch/PhabricatorBuiltinPatchList.php | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 resources/sql/patches/20130218.longdaemon.sql diff --git a/resources/sql/patches/20130218.longdaemon.sql b/resources/sql/patches/20130218.longdaemon.sql new file mode 100644 index 0000000000..9fffd578d7 --- /dev/null +++ b/resources/sql/patches/20130218.longdaemon.sql @@ -0,0 +1,2 @@ +ALTER TABLE {$NAMESPACE}_daemon.daemon_log + CHANGE argv argv LONGTEXT NOT NULL COLLATE utf8_bin; diff --git a/src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php b/src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php index c6dcbd9bdf..dd677403b1 100644 --- a/src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php +++ b/src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php @@ -1133,6 +1133,10 @@ final class PhabricatorBuiltinPatchList extends PhabricatorSQLPatchList { 'type' => 'php', 'name' => $this->getPatchPath('20130218.updatechannelid.php'), ), + '20130218.longdaemon.sql' => array( + 'type' => 'sql', + 'name' => $this->getPatchPath('20130218.longdaemon.sql'), + ), ); }