X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fcolumndef.php;h=b21b30e0d0212fe75a188ef54cb291aae47c4e3e;hb=31b29fde50e9664e1b70064c043879ce87553883;hp=1bae6b33bbfa251fd1166839aafe44fef94e6f25;hpb=42da45d3bc3cd0caa34f8d9f34c5617fedbb755e;p=quix0rs-gnu-social.git diff --git a/lib/columndef.php b/lib/columndef.php index 1bae6b33bb..b21b30e0d0 100644 --- a/lib/columndef.php +++ b/lib/columndef.php @@ -40,7 +40,6 @@ if (!defined('STATUSNET')) { * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @link http://status.net/ */ - class ColumnDef { /** name of the column. */ @@ -74,8 +73,8 @@ class ColumnDef * @param string $key type of key * @param value $default default value * @param value $extra unused + * @param boolean $auto_increment */ - function __construct($name=null, $type=null, $size=null, $nullable=true, $key=null, $default=null, $extra=null, $auto_increment=false) @@ -98,7 +97,6 @@ class ColumnDef * * @return boolean true if equivalent, otherwise false. */ - function equals($other) { return ($this->name == $other->name && @@ -121,7 +119,6 @@ class ColumnDef * * @return boolean true if they're about equivalent */ - private function _typeMatch($other) { switch ($this->type) { @@ -144,7 +141,6 @@ class ColumnDef * * @return boolean true if defaults are effectively the same. */ - private function _defaultMatch($other) { return ((is_null($this->default) && is_null($other->default)) || @@ -159,7 +155,6 @@ class ColumnDef * * @return boolean true if these columns 'null' the same. */ - private function _nullMatch($other) { return ((!is_null($this->default) && !is_null($other->default) &&