Skip to content
Snippets Groups Projects
Commit cdc44dca authored by ViolettaShevchenko's avatar ViolettaShevchenko
Browse files

Add db nullable description

parent 4631c9b0
Branches
Tags
No related merge requests found
ALTER TABLE `requests` ADD HasImage BOOLEAN NOT NULL DEFAULT FALSE;
ALTER TABLE `requests` MODIFY `Description` text CHARACTER SET utf8 NULL DEFAULT NULL;
......@@ -2247,8 +2247,8 @@ BEGIN
requests.Title = pTitle,
requests.Date = NOW()
WHERE requests.ID = pRequestID AND
requests.Description = '' AND
requests.Title = ''
requests.Description IS NULL AND
requests.Title IS NULL
LIMIT 1;
RETURN ROW_COUNT()-1;
END//
......
......@@ -233,7 +233,7 @@ CREATE TABLE IF NOT EXISTS `requests` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`AccountID` int(11) DEFAULT NULL,
`Title` varchar(50) CHARACTER SET utf8 NULL DEFAULT NULL,
`Description` text CHARACTER SET utf8 NOT NULL,
`Description` text CHARACTER SET utf8 NULL DEFAULT NULL,
`Date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`Status` enum('opened','processed','closed') NOT NULL DEFAULT 'opened',
`HasImage` BOOLEAN NOT NULL DEFAULT FALSE,
......
......@@ -117,7 +117,7 @@ class Controller_Handler_RequestsProcessing extends Controller_Handler
/** return int number of created ticket */
private function sendEmptyRequestWithImg($accountID) {
return Model_Support::createRequest($accountID, '', '', true);
return Model_Support::createRequest($accountID, NULL, NULL, true);
}
/** return int number status code */
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment