Skip to content
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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`);
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
DROP INDEX "#__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");
Original file line number Diff line number Diff line change
@@ -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];
10 changes: 5 additions & 5 deletions installation/sql/mysql/joomla.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1830,7 +1830,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`),
Expand All @@ -1843,10 +1843,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":""}');

-- --------------------------------------------------------

Expand Down
10 changes: 5 additions & 5 deletions installation/sql/postgresql/joomla.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1800,7 +1800,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")
Expand All @@ -1813,10 +1813,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);

Expand Down
10 changes: 5 additions & 5 deletions installation/sql/sqlazure/joomla.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2574,7 +2574,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
Expand All @@ -2600,10 +2600,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;

Expand Down