diff --git a/resources/sql/autopatches/20180210.hunk.01.droplegacy.sql b/resources/sql/autopatches/20180210.hunk.01.droplegacy.sql new file mode 100644 index 0000000000..129d3927d8 --- /dev/null +++ b/resources/sql/autopatches/20180210.hunk.01.droplegacy.sql @@ -0,0 +1 @@ +DROP TABLE {$NAMESPACE}_differential.differential_hunk; diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index 13dd7374d2..eebfd512d0 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -481,7 +481,6 @@ phutil_register_library_map(array( 'DifferentialInlineCommentQuery' => 'applications/differential/query/DifferentialInlineCommentQuery.php', 'DifferentialJIRAIssuesCommitMessageField' => 'applications/differential/field/DifferentialJIRAIssuesCommitMessageField.php', 'DifferentialJIRAIssuesField' => 'applications/differential/customfield/DifferentialJIRAIssuesField.php', - 'DifferentialLegacyHunk' => 'applications/differential/storage/DifferentialLegacyHunk.php', 'DifferentialLegacyQuery' => 'applications/differential/constants/DifferentialLegacyQuery.php', 'DifferentialLineAdjustmentMap' => 'applications/differential/parser/DifferentialLineAdjustmentMap.php', 'DifferentialLintField' => 'applications/differential/customfield/DifferentialLintField.php', @@ -5644,7 +5643,6 @@ phutil_register_library_map(array( 'DifferentialInlineCommentQuery' => 'PhabricatorOffsetPagedQuery', 'DifferentialJIRAIssuesCommitMessageField' => 'DifferentialCommitMessageCustomField', 'DifferentialJIRAIssuesField' => 'DifferentialStoredCustomField', - 'DifferentialLegacyHunk' => 'DifferentialHunk', 'DifferentialLegacyQuery' => 'Phobject', 'DifferentialLineAdjustmentMap' => 'Phobject', 'DifferentialLintField' => 'DifferentialHarbormasterField', diff --git a/src/applications/differential/storage/DifferentialLegacyHunk.php b/src/applications/differential/storage/DifferentialLegacyHunk.php deleted file mode 100644 index ae4673e46c..0000000000 --- a/src/applications/differential/storage/DifferentialLegacyHunk.php +++ /dev/null @@ -1,37 +0,0 @@ - array( - 'changes' => 'text?', - 'oldOffset' => 'uint32', - 'oldLen' => 'uint32', - 'newOffset' => 'uint32', - 'newLen' => 'uint32', - ), - self::CONFIG_KEY_SCHEMA => array( - 'changesetID' => array( - 'columns' => array('changesetID'), - ), - ), - ) + parent::getConfiguration(); - } - - public function getTableName() { - return 'differential_hunk'; - } - - public function getDataEncoding() { - return 'utf8'; - } - - public function forceEncoding($encoding) { - // Not supported, these are always utf8. - return $this; - } - -}