Change title column type to TEXT

This commit is contained in:
Skylar Ittner 2019-01-31 01:55:18 -07:00
parent 8cf4e17b08
commit 9252e6063f
3 changed files with 11 additions and 2 deletions

Binary file not shown.

View File

@ -1,5 +1,5 @@
-- MySQL Script generated by MySQL Workbench -- MySQL Script generated by MySQL Workbench
-- Wed 28 Nov 2018 10:54:14 PM MST -- Mon 28 Jan 2019 12:09:48 AM MST
-- Model: New Model Version: 1.0 -- Model: New Model Version: 1.0
-- MySQL Workbench Forward Engineering -- MySQL Workbench Forward Engineering
@ -19,7 +19,7 @@ CREATE TABLE IF NOT EXISTS `notes` (
`ownerid` INT NOT NULL, `ownerid` INT NOT NULL,
`color` VARCHAR(6) NOT NULL DEFAULT 'FFFFFF', `color` VARCHAR(6) NOT NULL DEFAULT 'FFFFFF',
`content` LONGTEXT NULL, `content` LONGTEXT NULL,
`title` TINYTEXT NULL, `title` TEXT NULL,
`modified` DATETIME NULL, `modified` DATETIME NULL,
`favorite` TINYINT(1) NOT NULL DEFAULT 0, `favorite` TINYINT(1) NOT NULL DEFAULT 0,
`archived` TINYINT(1) NOT NULL DEFAULT 0, `archived` TINYINT(1) NOT NULL DEFAULT 0,

View File

@ -0,0 +1,9 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
ALTER TABLE `notes`
CHANGE COLUMN `title` `title` TEXT NULL DEFAULT NULL;