MySQL does not allow default values on TEXT columns.

Contributed by facab.
This commit is contained in:
MobiusDevelopment 2019-03-18 09:19:55 +00:00
parent 2e9776511f
commit 4142064ebf
12 changed files with 36 additions and 36 deletions

View File

@ -1,7 +1,7 @@
CREATE TABLE IF NOT EXISTS `custom_mail` (
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
`subject` TINYTEXT NOT NULL DEFAULT "",
`message` TEXT NOT NULL DEFAULT "",
`items` TEXT NOT NULL DEFAULT "" -- format: itemId1 count1;itemId2 count2;itemId3 count3...
`subject` TINYTEXT NOT NULL,
`message` TEXT NOT NULL,
`items` TEXT NOT NULL -- format: itemId1 count1;itemId2 count2;itemId3 count3...
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@ -1,7 +1,7 @@
CREATE TABLE IF NOT EXISTS `custom_mail` (
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
`subject` TINYTEXT NOT NULL DEFAULT "",
`message` TEXT NOT NULL DEFAULT "",
`items` TEXT NOT NULL DEFAULT "" -- format: itemId1 count1;itemId2 count2;itemId3 count3...
`subject` TINYTEXT NOT NULL,
`message` TEXT NOT NULL,
`items` TEXT NOT NULL -- format: itemId1 count1;itemId2 count2;itemId3 count3...
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@ -1,7 +1,7 @@
CREATE TABLE IF NOT EXISTS `custom_mail` (
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
`subject` TINYTEXT NOT NULL DEFAULT "",
`message` TEXT NOT NULL DEFAULT "",
`items` TEXT NOT NULL DEFAULT "" -- format: itemId1 count1;itemId2 count2;itemId3 count3...
`subject` TINYTEXT NOT NULL,
`message` TEXT NOT NULL,
`items` TEXT NOT NULL -- format: itemId1 count1;itemId2 count2;itemId3 count3...
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@ -1,7 +1,7 @@
CREATE TABLE IF NOT EXISTS `custom_mail` (
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
`subject` TINYTEXT NOT NULL DEFAULT "",
`message` TEXT NOT NULL DEFAULT "",
`items` TEXT NOT NULL DEFAULT "" -- format: itemId1 count1;itemId2 count2;itemId3 count3...
`subject` TINYTEXT NOT NULL,
`message` TEXT NOT NULL,
`items` TEXT NOT NULL -- format: itemId1 count1;itemId2 count2;itemId3 count3...
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@ -1,7 +1,7 @@
CREATE TABLE IF NOT EXISTS `custom_mail` (
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
`subject` TINYTEXT NOT NULL DEFAULT "",
`message` TEXT NOT NULL DEFAULT "",
`items` TEXT NOT NULL DEFAULT "" -- format: itemId1 count1;itemId2 count2;itemId3 count3...
`subject` TINYTEXT NOT NULL,
`message` TEXT NOT NULL,
`items` TEXT NOT NULL -- format: itemId1 count1;itemId2 count2;itemId3 count3...
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@ -1,7 +1,7 @@
CREATE TABLE IF NOT EXISTS `custom_mail` (
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
`subject` TINYTEXT NOT NULL DEFAULT "",
`message` TEXT NOT NULL DEFAULT "",
`items` TEXT NOT NULL DEFAULT "" -- format: itemId1 count1;itemId2 count2;itemId3 count3...
`subject` TINYTEXT NOT NULL,
`message` TEXT NOT NULL,
`items` TEXT NOT NULL -- format: itemId1 count1;itemId2 count2;itemId3 count3...
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@ -1,7 +1,7 @@
CREATE TABLE IF NOT EXISTS `custom_mail` (
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
`subject` TINYTEXT NOT NULL DEFAULT "",
`message` TEXT NOT NULL DEFAULT "",
`items` TEXT NOT NULL DEFAULT "" -- format: itemId1 count1;itemId2 count2;itemId3 count3...
`subject` TINYTEXT NOT NULL,
`message` TEXT NOT NULL,
`items` TEXT NOT NULL -- format: itemId1 count1;itemId2 count2;itemId3 count3...
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@ -1,7 +1,7 @@
CREATE TABLE IF NOT EXISTS `custom_mail` (
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
`subject` TINYTEXT NOT NULL DEFAULT "",
`message` TEXT NOT NULL DEFAULT "",
`items` TEXT NOT NULL DEFAULT "" -- format: itemId1 count1;itemId2 count2;itemId3 count3...
`subject` TINYTEXT NOT NULL,
`message` TEXT NOT NULL,
`items` TEXT NOT NULL -- format: itemId1 count1;itemId2 count2;itemId3 count3...
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@ -1,7 +1,7 @@
CREATE TABLE IF NOT EXISTS `custom_mail` (
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
`subject` TINYTEXT NOT NULL DEFAULT "",
`message` TEXT NOT NULL DEFAULT "",
`items` TEXT NOT NULL DEFAULT "" -- format: itemId1 count1;itemId2 count2;itemId3 count3...
`subject` TINYTEXT NOT NULL,
`message` TEXT NOT NULL,
`items` TEXT NOT NULL -- format: itemId1 count1;itemId2 count2;itemId3 count3...
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@ -1,7 +1,7 @@
CREATE TABLE IF NOT EXISTS `custom_mail` (
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
`subject` TINYTEXT NOT NULL DEFAULT "",
`message` TEXT NOT NULL DEFAULT "",
`items` TEXT NOT NULL DEFAULT "" -- format: itemId1 count1;itemId2 count2;itemId3 count3...
`subject` TINYTEXT NOT NULL,
`message` TEXT NOT NULL,
`items` TEXT NOT NULL -- format: itemId1 count1;itemId2 count2;itemId3 count3...
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@ -1,7 +1,7 @@
CREATE TABLE IF NOT EXISTS `custom_mail` (
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
`subject` TINYTEXT NOT NULL DEFAULT "",
`message` TEXT NOT NULL DEFAULT "",
`items` TEXT NOT NULL DEFAULT "" -- format: itemId1 count1;itemId2 count2;itemId3 count3...
`subject` TINYTEXT NOT NULL,
`message` TEXT NOT NULL,
`items` TEXT NOT NULL -- format: itemId1 count1;itemId2 count2;itemId3 count3...
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@ -1,7 +1,7 @@
CREATE TABLE IF NOT EXISTS `custom_mail` (
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
`subject` TINYTEXT NOT NULL DEFAULT "",
`message` TEXT NOT NULL DEFAULT "",
`items` TEXT NOT NULL DEFAULT "" -- format: itemId1 count1;itemId2 count2;itemId3 count3...
`subject` TINYTEXT NOT NULL,
`message` TEXT NOT NULL,
`items` TEXT NOT NULL -- format: itemId1 count1;itemId2 count2;itemId3 count3...
) ENGINE=InnoDB DEFAULT CHARSET=utf8;