ALTER TABLE [dbo].[T_PLAN_REQUEST] ADD [Number] int
GO
UPDATE [dbo].[T_PLAN_REQUEST] SET [Number]='0'
GO
ALTER TABLE [dbo].[T_PLAN_REQUEST] ALTER COLUMN [Number] int NOT NULL
GO

ALTER TABLE [dbo].[T_PLAN_REQUEST] ADD [RequestDate] datetime
GO

ALTER TABLE [dbo].[T_PLAN_REQUEST] ADD [RequestTime] datetime
GO

ALTER TABLE [dbo].[T_PLAN_PARAMETER] ADD [PlanParameterLink] uniqueidentifier
GO
ALTER TABLE [dbo].[T_PLAN_PARAMETER] WITH NOCHECK ADD CONSTRAINT [FK_T_PLAN_PARAMETER_T_PLAN_PARAMETER_PlanParameterLink] FOREIGN KEY ([PlanParameterLink]) REFERENCES [dbo].[T_PLAN_PARAMETER] ([PayParametrID])
GO

