mirror of
https://github.com/joomla/joomla-cms.git
synced 2024-06-29 00:23:41 +00:00
[3.9] Wrong default value [SQL ] (#24058)
This commit is contained in:
parent
45a5c9d5d8
commit
2a3fa5f7ce
|
@ -5,11 +5,11 @@ CREATE TABLE IF NOT EXISTS `#__privacy_requests` (
|
|||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`email` varchar(100) NOT NULL DEFAULT '',
|
||||
`requested_at` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`status` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`status` tinyint(4) NOT NULL DEFAULT 0,
|
||||
`request_type` varchar(25) NOT NULL DEFAULT '',
|
||||
`confirm_token` varchar(100) NOT NULL DEFAULT '',
|
||||
`confirm_token_created_at` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`checked_out` int(11) NOT NULL DEFAULT '0',
|
||||
`checked_out` int(11) NOT NULL DEFAULT 0,
|
||||
`checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idx_checkout` (`checked_out`)
|
||||
|
|
|
@ -3,11 +3,11 @@ INSERT INTO `#__extensions` (`extension_id`, `package_id`, `name`, `type`, `elem
|
|||
|
||||
CREATE TABLE IF NOT EXISTS `#__privacy_consents` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`user_id` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`user_id` int(10) unsigned NOT NULL DEFAULT 0,
|
||||
`created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`subject` varchar(255) NOT NULL DEFAULT '',
|
||||
`body` text NOT NULL,
|
||||
`remind` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`remind` tinyint(4) NOT NULL DEFAULT 0,
|
||||
`token` varchar(100) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idx_user_id` (`user_id`)
|
||||
|
|
|
@ -1 +1 @@
|
|||
ALTER TABLE `#__privacy_consents` ADD COLUMN `state` INT(10) NOT NULL DEFAULT '1' AFTER `user_id`;
|
||||
ALTER TABLE `#__privacy_consents` ADD COLUMN `state` INT(10) NOT NULL DEFAULT 1 AFTER `user_id`;
|
||||
|
|
|
@ -695,19 +695,19 @@ CREATE TABLE IF NOT EXISTS `#__fields` (
|
|||
`type` varchar(255) NOT NULL DEFAULT 'text',
|
||||
`note` varchar(255) NOT NULL DEFAULT '',
|
||||
`description` text NOT NULL,
|
||||
`state` tinyint(1) NOT NULL DEFAULT '0',
|
||||
`required` tinyint(1) NOT NULL DEFAULT '0',
|
||||
`checked_out` int(11) NOT NULL DEFAULT '0',
|
||||
`state` tinyint(1) NOT NULL DEFAULT 0,
|
||||
`required` tinyint(1) NOT NULL DEFAULT 0,
|
||||
`checked_out` int(11) NOT NULL DEFAULT 0,
|
||||
`checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`ordering` int(11) NOT NULL DEFAULT '0',
|
||||
`ordering` int(11) NOT NULL DEFAULT 0,
|
||||
`params` text NOT NULL,
|
||||
`fieldparams` text NOT NULL,
|
||||
`language` char(7) NOT NULL DEFAULT '',
|
||||
`created_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`created_user_id` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`created_user_id` int(10) unsigned NOT NULL DEFAULT 0,
|
||||
`modified_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`modified_by` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`access` int(11) NOT NULL DEFAULT '1',
|
||||
`modified_by` int(10) unsigned NOT NULL DEFAULT 0,
|
||||
`access` int(11) NOT NULL DEFAULT 1,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idx_checkout` (`checked_out`),
|
||||
KEY `idx_state` (`state`),
|
||||
|
@ -742,17 +742,17 @@ CREATE TABLE IF NOT EXISTS `#__fields_groups` (
|
|||
`title` varchar(255) NOT NULL DEFAULT '',
|
||||
`note` varchar(255) NOT NULL DEFAULT '',
|
||||
`description` text NOT NULL,
|
||||
`state` tinyint(1) NOT NULL DEFAULT '0',
|
||||
`checked_out` int(11) NOT NULL DEFAULT '0',
|
||||
`state` tinyint(1) NOT NULL DEFAULT 0,
|
||||
`checked_out` int(11) NOT NULL DEFAULT 0,
|
||||
`checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`ordering` int(11) NOT NULL DEFAULT '0',
|
||||
`ordering` int(11) NOT NULL DEFAULT 0,
|
||||
`params` text NOT NULL,
|
||||
`language` char(7) NOT NULL DEFAULT '',
|
||||
`created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`created_by` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`created_by` int(10) unsigned NOT NULL DEFAULT 0,
|
||||
`modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`modified_by` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`access` int(11) NOT NULL DEFAULT '1',
|
||||
`modified_by` int(10) unsigned NOT NULL DEFAULT 0,
|
||||
`access` int(11) NOT NULL DEFAULT 1,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idx_checkout` (`checked_out`),
|
||||
KEY `idx_state` (`state`),
|
||||
|
@ -1439,7 +1439,7 @@ CREATE TABLE IF NOT EXISTS `#__menu_types` (
|
|||
`menutype` varchar(24) NOT NULL,
|
||||
`title` varchar(48) NOT NULL,
|
||||
`description` varchar(255) NOT NULL DEFAULT '',
|
||||
`client_id` int(11) NOT NULL DEFAULT '0',
|
||||
`client_id` int(11) NOT NULL DEFAULT 0,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `idx_menutype` (`menutype`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci;
|
||||
|
@ -1651,7 +1651,7 @@ CREATE TABLE IF NOT EXISTS `#__postinstall_messages` (
|
|||
`description_key` varchar(255) NOT NULL DEFAULT '' COMMENT 'Lang key for description',
|
||||
`action_key` varchar(255) NOT NULL DEFAULT '',
|
||||
`language_extension` varchar(255) NOT NULL DEFAULT 'com_postinstall' COMMENT 'Extension holding lang keys',
|
||||
`language_client_id` tinyint(3) NOT NULL DEFAULT '1',
|
||||
`language_client_id` tinyint(3) NOT NULL DEFAULT 1,
|
||||
`type` varchar(10) NOT NULL DEFAULT 'link' COMMENT 'Message type - message, link, action',
|
||||
`action_file` varchar(255) DEFAULT '' COMMENT 'RAD URI to the PHP file containing action method',
|
||||
`action` varchar(255) DEFAULT '' COMMENT 'Action method name or URL',
|
||||
|
@ -1687,7 +1687,7 @@ CREATE TABLE IF NOT EXISTS `#__privacy_requests` (
|
|||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`email` varchar(100) NOT NULL DEFAULT '',
|
||||
`requested_at` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`status` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`status` tinyint(4) NOT NULL DEFAULT 0,
|
||||
`request_type` varchar(25) NOT NULL DEFAULT '',
|
||||
`confirm_token` varchar(100) NOT NULL DEFAULT '',
|
||||
`confirm_token_created_at` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
|
@ -1702,12 +1702,12 @@ CREATE TABLE IF NOT EXISTS `#__privacy_requests` (
|
|||
|
||||
CREATE TABLE IF NOT EXISTS `#__privacy_consents` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`user_id` int(10) unsigned NOT NULL DEFAULT '0',
|
||||
`state` INT(10) NOT NULL DEFAULT '1',
|
||||
`user_id` int(10) unsigned NOT NULL DEFAULT 0,
|
||||
`state` INT(10) NOT NULL DEFAULT 1,
|
||||
`created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`subject` varchar(255) NOT NULL DEFAULT '',
|
||||
`body` text NOT NULL,
|
||||
`remind` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`remind` tinyint(4) NOT NULL DEFAULT 0,
|
||||
`token` varchar(100) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idx_user_id` (`user_id`)
|
||||
|
|
|
@ -751,17 +751,17 @@ CREATE TABLE "#__fields_groups" (
|
|||
"title" varchar(255) DEFAULT '' NOT NULL,
|
||||
"note" varchar(255) DEFAULT '' NOT NULL,
|
||||
"description" text NOT NULL,
|
||||
"state" smallint DEFAULT '0' NOT NULL,
|
||||
"checked_out" integer DEFAULT '0' NOT NULL,
|
||||
"state" smallint DEFAULT 0 NOT NULL,
|
||||
"checked_out" integer DEFAULT 0 NOT NULL,
|
||||
"checked_out_time" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL,
|
||||
"ordering" integer DEFAULT '0' NOT NULL,
|
||||
"ordering" integer DEFAULT 0 NOT NULL,
|
||||
"params" text DEFAULT '' NOT NULL,
|
||||
"language" varchar(7) DEFAULT '' NOT NULL,
|
||||
"created" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL,
|
||||
"created_by" bigint DEFAULT '0' NOT NULL,
|
||||
"created_by" bigint DEFAULT 0 NOT NULL,
|
||||
"modified" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL,
|
||||
"modified_by" bigint DEFAULT '0' NOT NULL,
|
||||
"access" bigint DEFAULT '1' NOT NULL,
|
||||
"modified_by" bigint DEFAULT 0 NOT NULL,
|
||||
"access" bigint DEFAULT 1 NOT NULL,
|
||||
PRIMARY KEY ("id")
|
||||
);
|
||||
CREATE INDEX "#__fields_groups_idx_checked_out" ON "#__fields_groups" ("checked_out");
|
||||
|
@ -2142,8 +2142,8 @@ CREATE TABLE "#__action_logs" (
|
|||
PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
CREATE INDEX "#__action_logs_idx_user_id" ON "#__action_logs" ("user_id");
|
||||
CREATE INDEX "#__action_logs_idx_user_id_logdate" ON "#__action_logs" ("user_id", "log_date");
|
||||
CREATE INDEX "#__action_logs_idx_user_id" ON "#__action_logs" ("user_id");
|
||||
CREATE INDEX "#__action_logs_idx_user_id_logdate" ON "#__action_logs" ("user_id", "log_date");
|
||||
CREATE INDEX "#__action_logs_idx_user_id_extension" ON "#__action_logs" ("user_id", "extension");
|
||||
CREATE INDEX "#__action_logs_idx_extension_itemid" ON "#__action_logs" ("extension", "item_id");
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user