-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ODS-5988] Remove OdsInstance from Application (#837)
* Remove ODSInstance from Application * Remove test * Package updates
- Loading branch information
1 parent
191f026
commit eda2f09
Showing
9 changed files
with
40 additions
and
83 deletions.
There are no files selected for viewing
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
22 changes: 22 additions & 0 deletions
22
Artifacts/MsSql/Structure/Admin/0170-Drop-OdsInstance-From-Application.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,22 @@ | ||
-- SPDX-License-Identifier: Apache-2.0 | ||
-- Licensed to the Ed-Fi Alliance under one or more agreements. | ||
-- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. | ||
-- See the LICENSE and NOTICES files in the project root for more information. | ||
|
||
IF OBJECT_ID('dbo.FK_Applications_OdsInstances', 'F') IS NOT NULL | ||
BEGIN | ||
ALTER TABLE [dbo].[Applications] DROP CONSTRAINT [FK_Applications_OdsInstances] | ||
END | ||
|
||
IF EXISTS (SELECT 1 | ||
FROM sys.indexes I | ||
WHERE I.Name = 'IX_OdsInstance_OdsInstanceId' -- Index name | ||
AND I.object_id = OBJECT_ID('dbo.Applications')) | ||
BEGIN | ||
DROP INDEX [IX_OdsInstance_OdsInstanceId] ON [dbo].[Applications] | ||
END | ||
|
||
IF EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'Applications' AND COLUMN_NAME = 'OdsInstance_OdsInstanceId') | ||
BEGIN | ||
ALTER TABLE [dbo].[Applications] DROP COLUMN [OdsInstance_OdsInstanceId] | ||
END |
12 changes: 12 additions & 0 deletions
12
Artifacts/PgSql/Structure/Admin/0170-Drop-OdsInstance-From-Application.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,12 @@ | ||
-- SPDX-License-Identifier: Apache-2.0 | ||
-- Licensed to the Ed-Fi Alliance under one or more agreements. | ||
-- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. | ||
-- See the LICENSE and NOTICES files in the project root for more information. | ||
|
||
ALTER TABLE dbo.Applications | ||
DROP CONSTRAINT IF EXISTS FK_Applications_OdsInstances; | ||
|
||
DROP INDEX IF EXISTS IX_OdsInstance_OdsInstanceId; | ||
|
||
ALTER TABLE dbo.Applications | ||
DROP COLUMN IF EXISTS OdsInstance_OdsInstanceId; |
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