Initial commit: JDE Scoping Tool migration project
Set up repository with legacy .NET Framework 4.8 source (OLD/), new .NET 10 Blazor solution (NEW/), OpenSpec specifications, documentation, and project configuration.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
-- Migration: 010_CreateOrgHierarchyTable
|
||||
-- Source: OLD/Database/Tables/OrgHierarchy.sql
|
||||
-- Changes: DATETIME -> DATETIME2(7)
|
||||
|
||||
IF NOT EXISTS (SELECT * FROM sys.tables WHERE name = 'OrgHierarchy' AND schema_id = SCHEMA_ID('dbo'))
|
||||
BEGIN
|
||||
CREATE TABLE [dbo].[OrgHierarchy]
|
||||
(
|
||||
[WorkCenterCode] VARCHAR(12) NOT NULL,
|
||||
[BranchCode] VARCHAR(12) NOT NULL,
|
||||
[ProfitCenterCode] VARCHAR(12) NOT NULL,
|
||||
[LastUpdateDT] DATETIME2(7) NOT NULL,
|
||||
CONSTRAINT [PK_OrgHierarchy] PRIMARY KEY CLUSTERED([WorkCenterCode], [BranchCode])
|
||||
);
|
||||
END
|
||||
GO
|
||||
|
||||
IF NOT EXISTS (SELECT * FROM sys.indexes WHERE name = 'IX_OrgHierarchy_ProfitCenterCode' AND object_id = OBJECT_ID('dbo.OrgHierarchy'))
|
||||
BEGIN
|
||||
CREATE INDEX [IX_OrgHierarchy_ProfitCenterCode] ON [dbo].[OrgHierarchy] ([ProfitCenterCode]) INCLUDE([WorkCenterCode]);
|
||||
END
|
||||
GO
|
||||
Reference in New Issue
Block a user