MySQL does not allow default values on TEXT columns.
Contributed by facab.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
CREATE TABLE IF NOT EXISTS `custom_mail` (
|
CREATE TABLE IF NOT EXISTS `custom_mail` (
|
||||||
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
|
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
|
||||||
`subject` TINYTEXT NOT NULL DEFAULT "",
|
`subject` TINYTEXT NOT NULL,
|
||||||
`message` TEXT NOT NULL DEFAULT "",
|
`message` TEXT NOT NULL,
|
||||||
`items` TEXT NOT NULL DEFAULT "" -- format: itemId1 count1;itemId2 count2;itemId3 count3...
|
`items` TEXT NOT NULL -- format: itemId1 count1;itemId2 count2;itemId3 count3...
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
@@ -1,7 +1,7 @@
|
|||||||
CREATE TABLE IF NOT EXISTS `custom_mail` (
|
CREATE TABLE IF NOT EXISTS `custom_mail` (
|
||||||
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
|
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
|
||||||
`subject` TINYTEXT NOT NULL DEFAULT "",
|
`subject` TINYTEXT NOT NULL,
|
||||||
`message` TEXT NOT NULL DEFAULT "",
|
`message` TEXT NOT NULL,
|
||||||
`items` TEXT NOT NULL DEFAULT "" -- format: itemId1 count1;itemId2 count2;itemId3 count3...
|
`items` TEXT NOT NULL -- format: itemId1 count1;itemId2 count2;itemId3 count3...
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
@@ -1,7 +1,7 @@
|
|||||||
CREATE TABLE IF NOT EXISTS `custom_mail` (
|
CREATE TABLE IF NOT EXISTS `custom_mail` (
|
||||||
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
|
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
|
||||||
`subject` TINYTEXT NOT NULL DEFAULT "",
|
`subject` TINYTEXT NOT NULL,
|
||||||
`message` TEXT NOT NULL DEFAULT "",
|
`message` TEXT NOT NULL,
|
||||||
`items` TEXT NOT NULL DEFAULT "" -- format: itemId1 count1;itemId2 count2;itemId3 count3...
|
`items` TEXT NOT NULL -- format: itemId1 count1;itemId2 count2;itemId3 count3...
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
@@ -1,7 +1,7 @@
|
|||||||
CREATE TABLE IF NOT EXISTS `custom_mail` (
|
CREATE TABLE IF NOT EXISTS `custom_mail` (
|
||||||
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
|
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
|
||||||
`subject` TINYTEXT NOT NULL DEFAULT "",
|
`subject` TINYTEXT NOT NULL,
|
||||||
`message` TEXT NOT NULL DEFAULT "",
|
`message` TEXT NOT NULL,
|
||||||
`items` TEXT NOT NULL DEFAULT "" -- format: itemId1 count1;itemId2 count2;itemId3 count3...
|
`items` TEXT NOT NULL -- format: itemId1 count1;itemId2 count2;itemId3 count3...
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
@@ -1,7 +1,7 @@
|
|||||||
CREATE TABLE IF NOT EXISTS `custom_mail` (
|
CREATE TABLE IF NOT EXISTS `custom_mail` (
|
||||||
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
|
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
|
||||||
`subject` TINYTEXT NOT NULL DEFAULT "",
|
`subject` TINYTEXT NOT NULL,
|
||||||
`message` TEXT NOT NULL DEFAULT "",
|
`message` TEXT NOT NULL,
|
||||||
`items` TEXT NOT NULL DEFAULT "" -- format: itemId1 count1;itemId2 count2;itemId3 count3...
|
`items` TEXT NOT NULL -- format: itemId1 count1;itemId2 count2;itemId3 count3...
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
@@ -1,7 +1,7 @@
|
|||||||
CREATE TABLE IF NOT EXISTS `custom_mail` (
|
CREATE TABLE IF NOT EXISTS `custom_mail` (
|
||||||
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
|
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
|
||||||
`subject` TINYTEXT NOT NULL DEFAULT "",
|
`subject` TINYTEXT NOT NULL,
|
||||||
`message` TEXT NOT NULL DEFAULT "",
|
`message` TEXT NOT NULL,
|
||||||
`items` TEXT NOT NULL DEFAULT "" -- format: itemId1 count1;itemId2 count2;itemId3 count3...
|
`items` TEXT NOT NULL -- format: itemId1 count1;itemId2 count2;itemId3 count3...
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
@@ -1,7 +1,7 @@
|
|||||||
CREATE TABLE IF NOT EXISTS `custom_mail` (
|
CREATE TABLE IF NOT EXISTS `custom_mail` (
|
||||||
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
|
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
|
||||||
`subject` TINYTEXT NOT NULL DEFAULT "",
|
`subject` TINYTEXT NOT NULL,
|
||||||
`message` TEXT NOT NULL DEFAULT "",
|
`message` TEXT NOT NULL,
|
||||||
`items` TEXT NOT NULL DEFAULT "" -- format: itemId1 count1;itemId2 count2;itemId3 count3...
|
`items` TEXT NOT NULL -- format: itemId1 count1;itemId2 count2;itemId3 count3...
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
@@ -1,7 +1,7 @@
|
|||||||
CREATE TABLE IF NOT EXISTS `custom_mail` (
|
CREATE TABLE IF NOT EXISTS `custom_mail` (
|
||||||
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
|
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
|
||||||
`subject` TINYTEXT NOT NULL DEFAULT "",
|
`subject` TINYTEXT NOT NULL,
|
||||||
`message` TEXT NOT NULL DEFAULT "",
|
`message` TEXT NOT NULL,
|
||||||
`items` TEXT NOT NULL DEFAULT "" -- format: itemId1 count1;itemId2 count2;itemId3 count3...
|
`items` TEXT NOT NULL -- format: itemId1 count1;itemId2 count2;itemId3 count3...
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
@@ -1,7 +1,7 @@
|
|||||||
CREATE TABLE IF NOT EXISTS `custom_mail` (
|
CREATE TABLE IF NOT EXISTS `custom_mail` (
|
||||||
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
|
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
|
||||||
`subject` TINYTEXT NOT NULL DEFAULT "",
|
`subject` TINYTEXT NOT NULL,
|
||||||
`message` TEXT NOT NULL DEFAULT "",
|
`message` TEXT NOT NULL,
|
||||||
`items` TEXT NOT NULL DEFAULT "" -- format: itemId1 count1;itemId2 count2;itemId3 count3...
|
`items` TEXT NOT NULL -- format: itemId1 count1;itemId2 count2;itemId3 count3...
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
@@ -1,7 +1,7 @@
|
|||||||
CREATE TABLE IF NOT EXISTS `custom_mail` (
|
CREATE TABLE IF NOT EXISTS `custom_mail` (
|
||||||
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
|
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
|
||||||
`subject` TINYTEXT NOT NULL DEFAULT "",
|
`subject` TINYTEXT NOT NULL,
|
||||||
`message` TEXT NOT NULL DEFAULT "",
|
`message` TEXT NOT NULL,
|
||||||
`items` TEXT NOT NULL DEFAULT "" -- format: itemId1 count1;itemId2 count2;itemId3 count3...
|
`items` TEXT NOT NULL -- format: itemId1 count1;itemId2 count2;itemId3 count3...
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
@@ -1,7 +1,7 @@
|
|||||||
CREATE TABLE IF NOT EXISTS `custom_mail` (
|
CREATE TABLE IF NOT EXISTS `custom_mail` (
|
||||||
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
|
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
|
||||||
`subject` TINYTEXT NOT NULL DEFAULT "",
|
`subject` TINYTEXT NOT NULL,
|
||||||
`message` TEXT NOT NULL DEFAULT "",
|
`message` TEXT NOT NULL,
|
||||||
`items` TEXT NOT NULL DEFAULT "" -- format: itemId1 count1;itemId2 count2;itemId3 count3...
|
`items` TEXT NOT NULL -- format: itemId1 count1;itemId2 count2;itemId3 count3...
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
@@ -1,7 +1,7 @@
|
|||||||
CREATE TABLE IF NOT EXISTS `custom_mail` (
|
CREATE TABLE IF NOT EXISTS `custom_mail` (
|
||||||
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
|
`receiver` INT UNSIGNED NOT NULL DEFAULT 0,
|
||||||
`subject` TINYTEXT NOT NULL DEFAULT "",
|
`subject` TINYTEXT NOT NULL,
|
||||||
`message` TEXT NOT NULL DEFAULT "",
|
`message` TEXT NOT NULL,
|
||||||
`items` TEXT NOT NULL DEFAULT "" -- format: itemId1 count1;itemId2 count2;itemId3 count3...
|
`items` TEXT NOT NULL -- format: itemId1 count1;itemId2 count2;itemId3 count3...
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
Reference in New Issue
Block a user