diff --git a/administrator/components/com_admin/sql/updates/mysql/3.9.8-2019-06-15.sql b/administrator/components/com_admin/sql/updates/mysql/3.9.8-2019-06-15.sql new file mode 100644 index 0000000000000..0d582ea6ff3fa --- /dev/null +++ b/administrator/components/com_admin/sql/updates/mysql/3.9.8-2019-06-15.sql @@ -0,0 +1,3 @@ +ALTER TABLE `#__template_styles` DROP INDEX `idx_home`; +ALTER TABLE `#__template_styles` MODIFY `home` tinyint(1) unsigned NOT NULL DEFAULT 0; +ALTER TABLE `#__template_styles` ADD INDEX `idx_home` (`home`); diff --git a/administrator/components/com_admin/sql/updates/postgresql/3.9.8-2019-06-15.sql b/administrator/components/com_admin/sql/updates/postgresql/3.9.8-2019-06-15.sql new file mode 100644 index 0000000000000..7b4f8c3405e67 --- /dev/null +++ b/administrator/components/com_admin/sql/updates/postgresql/3.9.8-2019-06-15.sql @@ -0,0 +1,4 @@ +DROP INDEX IF EXISTS "#__template_styles_idx_home"; +ALTER TABLE "#__template_style" ALTER COLUMN "home" TYPE smallint; +ALTER TABLE "#__template_style" ALTER COLUMN "home" SET DEFAULT 0; +CREATE INDEX "#__template_styles_idx_home" ON "#__template_style" ("home"); diff --git a/administrator/components/com_admin/sql/updates/sqlazure/3.9.8-2019-06-15.sql b/administrator/components/com_admin/sql/updates/sqlazure/3.9.8-2019-06-15.sql new file mode 100644 index 0000000000000..68879e7778534 --- /dev/null +++ b/administrator/components/com_admin/sql/updates/sqlazure/3.9.8-2019-06-15.sql @@ -0,0 +1,7 @@ +DROP INDEX [idx_home] ON [#__template_styles]; +ALTER TABLE [#__template_styles] ALTER COLUMN [home] [tyinint] NOT NULL; +CREATE NONCLUSTERED INDEX [idx_home] ON [#__template_styles] +( + [home] ASC +)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF); +ALTER TABLE [#__template_styles] ADD DEFAULT (0) FOR [home]; diff --git a/installation/sql/mysql/joomla.sql b/installation/sql/mysql/joomla.sql index 7f3cded5c1ce0..dd87f79b35b1a 100644 --- a/installation/sql/mysql/joomla.sql +++ b/installation/sql/mysql/joomla.sql @@ -1831,7 +1831,7 @@ CREATE TABLE IF NOT EXISTS `#__template_styles` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `template` varchar(50) NOT NULL DEFAULT '', `client_id` tinyint(1) unsigned NOT NULL DEFAULT 0, - `home` char(7) NOT NULL DEFAULT 0, + `home` tinyint(1) unsigned NOT NULL DEFAULT 0, `title` varchar(255) NOT NULL DEFAULT '', `params` text NOT NULL, PRIMARY KEY (`id`), @@ -1844,10 +1844,10 @@ CREATE TABLE IF NOT EXISTS `#__template_styles` ( -- INSERT INTO `#__template_styles` (`id`, `template`, `client_id`, `home`, `title`, `params`) VALUES -(4, 'beez3', 0, '0', 'Beez3 - Default', '{"wrapperSmall":"53","wrapperLarge":"72","logo":"images\\/joomla_black.png","sitetitle":"Joomla!","sitedescription":"Open Source Content Management","navposition":"left","templatecolor":"personal","html5":"0"}'), -(5, 'hathor', 1, '0', 'Hathor - Default', '{"showSiteName":"0","colourChoice":"","boldText":"0"}'), -(7, 'protostar', 0, '1', 'protostar - Default', '{"templateColor":"","logoFile":"","googleFont":"1","googleFontName":"Open+Sans","fluidContainer":"0"}'), -(8, 'isis', 1, '1', 'isis - Default', '{"templateColor":"","logoFile":""}'); +(4, 'beez3', 0, 0, 'Beez3 - Default', '{"wrapperSmall":"53","wrapperLarge":"72","logo":"images\\/joomla_black.png","sitetitle":"Joomla!","sitedescription":"Open Source Content Management","navposition":"left","templatecolor":"personal","html5":"0"}'), +(5, 'hathor', 1, 0, 'Hathor - Default', '{"showSiteName":"0","colourChoice":"","boldText":"0"}'), +(7, 'protostar', 0, 1, 'protostar - Default', '{"templateColor":"","logoFile":"","googleFont":"1","googleFontName":"Open+Sans","fluidContainer":"0"}'), +(8, 'isis', 1, 1, 'isis - Default', '{"templateColor":"","logoFile":""}'); -- -------------------------------------------------------- diff --git a/installation/sql/postgresql/joomla.sql b/installation/sql/postgresql/joomla.sql index 728c19eb26515..b60cacfbf49f1 100644 --- a/installation/sql/postgresql/joomla.sql +++ b/installation/sql/postgresql/joomla.sql @@ -1801,7 +1801,7 @@ CREATE TABLE "#__template_styles" ( "id" serial NOT NULL, "template" varchar(50) DEFAULT '' NOT NULL, "client_id" smallint DEFAULT 0 NOT NULL, - "home" varchar(7) DEFAULT '0' NOT NULL, + "home" smallint DEFAULT 0 NOT NULL, "title" varchar(255) DEFAULT '' NOT NULL, "params" text NOT NULL, PRIMARY KEY ("id") @@ -1814,10 +1814,10 @@ CREATE INDEX "#__template_styles_idx_home" ON "#__template_styles" ("home"); -- INSERT INTO "#__template_styles" ("id", "template", "client_id", "home", "title", "params") VALUES -(4, 'beez3', 0, '0', 'Beez3 - Default', '{"wrapperSmall":"53","wrapperLarge":"72","logo":"images\\/joomla_black.png","sitetitle":"Joomla!","sitedescription":"Open Source Content Management","navposition":"left","templatecolor":"personal","html5":"0"}'), -(5, 'hathor', 1, '0', 'Hathor - Default', '{"showSiteName":"0","colourChoice":"","boldText":"0"}'), -(7, 'protostar', 0, '1', 'protostar - Default', '{"templateColor":"","logoFile":"","googleFont":"1","googleFontName":"Open+Sans","fluidContainer":"0"}'), -(8, 'isis', 1, '1', 'isis - Default', '{"templateColor":"","logoFile":""}'); +(4, 'beez3', 0, 0, 'Beez3 - Default', '{"wrapperSmall":"53","wrapperLarge":"72","logo":"images\\/joomla_black.png","sitetitle":"Joomla!","sitedescription":"Open Source Content Management","navposition":"left","templatecolor":"personal","html5":"0"}'), +(5, 'hathor', 1, 0, 'Hathor - Default', '{"showSiteName":"0","colourChoice":"","boldText":"0"}'), +(7, 'protostar', 0, 1, 'protostar - Default', '{"templateColor":"","logoFile":"","googleFont":"1","googleFontName":"Open+Sans","fluidContainer":"0"}'), +(8, 'isis', 1, 1, 'isis - Default', '{"templateColor":"","logoFile":""}'); SELECT setval('#__template_styles_id_seq', 9, false); diff --git a/installation/sql/sqlazure/joomla.sql b/installation/sql/sqlazure/joomla.sql index 32314a3cbde66..222e024fc0aa2 100644 --- a/installation/sql/sqlazure/joomla.sql +++ b/installation/sql/sqlazure/joomla.sql @@ -2575,7 +2575,7 @@ CREATE TABLE "#__template_styles" ( "id" bigint IDENTITY(9,1) NOT NULL, "template" nvarchar(50) NOT NULL DEFAULT '', "client_id" tinyint NOT NULL DEFAULT 0, - "home" nvarchar(7) NOT NULL DEFAULT 0, + "home" tinyint NOT NULL DEFAULT 0, "title" nvarchar(255) NOT NULL DEFAULT '', "params" nvarchar(max) NOT NULL, CONSTRAINT "PK_#__template_styles_id" PRIMARY KEY CLUSTERED @@ -2601,10 +2601,10 @@ CREATE NONCLUSTERED INDEX "idx_template" ON "#__template_styles" SET IDENTITY_INSERT "#__template_styles" ON; INSERT INTO "#__template_styles" ("id", "template", "client_id", "home", "title", "params") VALUES -(4, 'beez3', 0, '0', 'Beez3 - Default', '{"wrapperSmall":"53","wrapperLarge":"72","logo":"images/joomla_black.png","sitetitle":"Joomla!","sitedescription":"Open Source Content Management","navposition":"left","templatecolor":"personal","html5":"0"}'), -(5, 'hathor', 1, '0', 'Hathor - Default', '{"showSiteName":"0","colourChoice":"","boldText":"0"}'), -(7, 'protostar', 0, '1', 'protostar - Default', '{"templateColor":"","logoFile":"","googleFont":"1","googleFontName":"Open+Sans","fluidContainer":"0"}'), -(8, 'isis', 1, '1', 'isis - Default', '{"templateColor":"","logoFile":""}'); +(4, 'beez3', 0, 0, 'Beez3 - Default', '{"wrapperSmall":"53","wrapperLarge":"72","logo":"images/joomla_black.png","sitetitle":"Joomla!","sitedescription":"Open Source Content Management","navposition":"left","templatecolor":"personal","html5":"0"}'), +(5, 'hathor', 1, 0, 'Hathor - Default', '{"showSiteName":"0","colourChoice":"","boldText":"0"}'), +(7, 'protostar', 0, 1, 'protostar - Default', '{"templateColor":"","logoFile":"","googleFont":"1","googleFontName":"Open+Sans","fluidContainer":"0"}'), +(8, 'isis', 1, 1, 'isis - Default', '{"templateColor":"","logoFile":""}'); SET IDENTITY_INSERT "#__template_styles" OFF;