diff options
Diffstat (limited to 'maintenance/mssql/archives')
6 files changed, 0 insertions, 52 deletions
diff --git a/maintenance/mssql/archives/named_constraints.sql b/maintenance/mssql/archives/named_constraints.sql deleted file mode 100644 index 94b77ea7..00000000 --- a/maintenance/mssql/archives/named_constraints.sql +++ /dev/null @@ -1,38 +0,0 @@ -DECLARE @fullyQualifiedTableName nvarchar(max), -@tableName sysname, -@fieldName sysname, -@constr sysname, -@constrNew sysname, -@sqlcmd nvarchar(max), -@sqlcreate nvarchar(max) - -SET @fullyQualifiedTableName = '/*_*//*$tableName*/' -SET @tableName = '/*$tableName*/' -SET @fieldName = '/*$fieldName*/' - -SELECT @constr = CONSTRAINT_NAME -FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS -WHERE TABLE_NAME = @tableName -AND CONSTRAINT_CATALOG = '/*$wgDBname*/' -AND CONSTRAINT_SCHEMA = '/*$wgDBmwschema*/' -AND CONSTRAINT_TYPE = 'CHECK' -AND CONSTRAINT_NAME LIKE ('CK__' + left(@tableName,9) + '__' + left(@fieldName,5) + '%') - -SELECT @constrNew = CONSTRAINT_NAME -FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS -WHERE TABLE_NAME = @tableName -AND CONSTRAINT_CATALOG = '/*$wgDBname*/' -AND CONSTRAINT_SCHEMA = '/*$wgDBmwschema*/' -AND CONSTRAINT_TYPE = 'CHECK' -AND CONSTRAINT_NAME = (@fieldName + '_ckc') - -IF @constr IS NOT NULL -BEGIN - SET @sqlcmd = 'ALTER TABLE ' + @fullyQualifiedTableName + ' DROP CONSTRAINT [' + @constr + ']' - EXECUTE sp_executesql @sqlcmd -END -IF @constrNew IS NULL -BEGIN - SET @sqlcreate = 'ALTER TABLE ' + @fullyQualifiedTableName + ' WITH NOCHECK ADD CONSTRAINT ' + @fieldName + '_ckc CHECK /*$checkConstraint*/;' - EXECUTE sp_executesql @sqlcreate -END
\ No newline at end of file diff --git a/maintenance/mssql/archives/patch-fa_major_mime-chemical.sql b/maintenance/mssql/archives/patch-fa_major_mime-chemical.sql deleted file mode 100644 index 18368087..00000000 --- a/maintenance/mssql/archives/patch-fa_major_mime-chemical.sql +++ /dev/null @@ -1,4 +0,0 @@ -ALTER TABLE /*_*/filearchive -DROP CONSTRAINT fa_major_mime_ckc; -ALTER TABLE /*_*/filearchive -WITH NOCHECK ADD CONSTRAINT fa_major_mime_ckc CHECK (fa_major_mime IN('unknown', 'application', 'audio', 'image', 'text', 'video', 'message', 'model', 'multipart', 'chemical'));
\ No newline at end of file diff --git a/maintenance/mssql/archives/patch-img_major_mime-chemical.sql b/maintenance/mssql/archives/patch-img_major_mime-chemical.sql deleted file mode 100644 index eed07869..00000000 --- a/maintenance/mssql/archives/patch-img_major_mime-chemical.sql +++ /dev/null @@ -1,4 +0,0 @@ -ALTER TABLE /*_*/image -DROP CONSTRAINT img_major_mime_ckc; -ALTER TABLE /*_*/image -WITH NOCHECK ADD CONSTRAINT img_major_mime_ckc CHECK (img_major_mime IN('unknown', 'application', 'audio', 'image', 'text', 'video', 'message', 'model', 'multipart', 'chemical'));
\ No newline at end of file diff --git a/maintenance/mssql/archives/patch-oi_major_mime-chemical.sql b/maintenance/mssql/archives/patch-oi_major_mime-chemical.sql deleted file mode 100644 index 35482edc..00000000 --- a/maintenance/mssql/archives/patch-oi_major_mime-chemical.sql +++ /dev/null @@ -1,4 +0,0 @@ -ALTER TABLE /*_*/oldimage -DROP CONSTRAINT oi_major_mime_ckc; -ALTER TABLE /*_*/oldimage -WITH NOCHECK ADD CONSTRAINT oi_major_mime_ckc CHECK (oi_major_mime IN('unknown', 'application', 'audio', 'image', 'text', 'video', 'message', 'model', 'multipart', 'chemical'));
\ No newline at end of file diff --git a/maintenance/mssql/archives/patch-page_page_lang.sql b/maintenance/mssql/archives/patch-page_page_lang.sql deleted file mode 100644 index d2f537b0..00000000 --- a/maintenance/mssql/archives/patch-page_page_lang.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE /*_*/page ADD page_lang VARBINARY(35) DEFAULT NULL diff --git a/maintenance/mssql/archives/patch-user_password_expires.sql b/maintenance/mssql/archives/patch-user_password_expires.sql deleted file mode 100644 index c22b10c7..00000000 --- a/maintenance/mssql/archives/patch-user_password_expires.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE /*_*/mwuser ADD user_password_expires VARCHAR(14) DEFAULT NULL
\ No newline at end of file |