Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix install languages and discover extension for mssql.
Mysql strict mode - install languages fix Postgresql - reinstall languages fix Mssql - install and reinstall and discover extension fix
- Loading branch information
Tomasz Narloch
committed
Mar 4, 2017
1 parent
c27905f
commit e8c27d1
Showing
11 changed files
with
88 additions
and
32 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
administrator/components/com_admin/sql/updates/mysql/3.7.0-2017-03-03.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
ALTER TABLE `#__languages` MODIFY `asset_id` int(10) unsigned NOT NULL DEFAULT 0; | ||
ALTER TABLE `#__menu_types` MODIFY `asset_id` int(10) unsigned NOT NULL DEFAULT 0; | ||
|
||
ALTER TABLE `#__content` MODIFY `xreference` varchar(50) NOT NULL DEFAULT ''; | ||
ALTER TABLE `#__newsfeeds` MODIFY `xreference` varchar(50) NOT NULL DEFAULT ''; |
5 changes: 5 additions & 0 deletions
5
administrator/components/com_admin/sql/updates/postgresql/3.7.0-2017-03-03.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
ALTER TABLE "#__extensions" ALTER COLUMN "custom_data" DROP DEFAULT; | ||
ALTER TABLE "#__extensions" ALTER COLUMN "system_data" DROP DEFAULT; | ||
ALTER TABLE "#__updates" ALTER COLUMN "data" DROP DEFAULT; | ||
|
||
ALTER TABLE "#__newsfeeds" ALTER COLUMN "xreference" SET DEFAULT ''; |
31 changes: 31 additions & 0 deletions
31
administrator/components/com_admin/sql/updates/sqlazure/3.7.0-2017-03-03.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
CREATE PROCEDURE "#removeDefault" | ||
( | ||
@table NVARCHAR(100), | ||
@column NVARCHAR(100) | ||
) | ||
AS | ||
BEGIN | ||
DECLARE @constraintName AS nvarchar(100) | ||
DECLARE @constraintQuery AS nvarchar(1000) | ||
SELECT @constraintName = name FROM sys.default_constraints | ||
WHERE parent_object_id = object_id(@table) | ||
AND parent_column_id = columnproperty(object_id(@table), @column, 'ColumnId') | ||
SET @constraintQuery = 'ALTER TABLE [' + @table + '] DROP CONSTRAINT [' + @constraintName + ']' | ||
EXECUTE sp_executesql @constraintQuery | ||
END; | ||
|
||
EXECUTE "#removeDefault" "#__extensions", 'system_data'; | ||
EXECUTE "#removeDefault" "#__updates", 'data'; | ||
|
||
ALTER TABLE "#__content" ADD DEFAULT ('') FOR "xreference"; | ||
ALTER TABLE "#__newsfeeds" ADD DEFAULT ('') FOR "xreference"; | ||
|
||
-- Delete wrong unique index | ||
DROP INDEX "idx_access" ON "#__languages"; | ||
|
||
-- Add missing unique index | ||
ALTER TABLE "#__languages" ADD CONSTRAINT "#__languages$idx_langcode" UNIQUE ("lang_code") ON [PRIMARY]; | ||
|
||
-- Add missing index keys | ||
CREATE INDEX "idx_access" ON "#__languages" ("access"); | ||
CREATE INDEX "idx_ordering" ON "#__languages" ("ordering"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters