-- Migration: 026_CreateWorkOrderView
-- Source: OLD/Database/Views/WorkOrder.sql
-- Union view combining WorkOrder_Curr and WorkOrder_Hist

CREATE OR ALTER VIEW [dbo].[WorkOrder] AS
(
    SELECT hist.*
    FROM dbo.WorkOrder_Hist hist
    UNION ALL
    SELECT curr.*
    FROM dbo.WorkOrder_Curr curr
);
GO
