protected function doRemoveNotNullEmptyDefaults2() { $meta = $this->db->fieldInfo('ipblocks', 'ipb_by_text'); if ($meta->isNullable()) { return; } $this->applyPatch('patch_remove_not_null_empty_defs2.sql', false, "Removing not null empty constraints"); }
/** * Remove DEFAULT '' NOT NULL constraints from fields as '' is internally * converted to NULL in Oracle */ protected function doRemoveNotNullEmptyDefaults() { $this->output("Removing not null empty constraints ... "); $meta = $this->db->fieldInfo('categorylinks', 'cl_sortkey_prefix'); if ($meta->isNullable()) { $this->output("constraints seem to be removed\n"); return; } $this->applyPatch('patch_remove_not_null_empty_defs.sql', false); $this->output("ok\n"); }
protected function doRemoveNotNullEmptyDefaults2() { $this->output("Removing not null empty constraints ... "); $meta = $this->db->fieldInfo('ipblocks', 'ipb_by_text'); if ($meta->isNullable()) { $this->output("constraints seem to be removed\n"); return; } $this->applyPatch('patch_remove_not_null_empty_defs2.sql', false); $this->output("ok\n"); }