CoreFiles by mySites.guru
3.7.0-2016-11-04.sql13 lines, 666 bytes, from Joomla_3.10.0-alpha9-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha8
md5
dca7ffc4de552cc94977a06baa220df2
sha1
b310771986b8b2d29b927676d358d16de0875788
sha256
ef87d06d766014e824e370dbae67d03a5b452ed6eb8a53d77c7596dab4e1598f
-- Change default value for enabled column.
DECLARE @table AS nvarchar(100)
DECLARE @constraintName AS nvarchar(100)
DECLARE @constraintQuery AS nvarchar(1000)
SET QUOTED_IDENTIFIER OFF
SET @table = "#__extensions"
SET QUOTED_IDENTIFIER ON
SELECT @constraintName = name FROM sys.default_constraints
WHERE parent_object_id = object_id(@table)
AND parent_column_id = columnproperty(object_id(@table), 'enabled', 'ColumnId')
SET @constraintQuery = 'ALTER TABLE [' + @table + '] DROP CONSTRAINT [' + @constraintName
+ ']; ALTER TABLE [' + @table + '] ADD CONSTRAINT [' + @constraintName + '] DEFAULT 0 FOR [enabled]'
EXECUTE sp_executesql @constraintQuery;

The same content is in 8 releases, Joomla 3.10.0-alpha4 to 3.10.0-rc2. See them all, or every version of this file.