Skip to content

Instantly share code, notes, and snippets.

@Macadoshis
Created June 4, 2018 17:06
Show Gist options
  • Save Macadoshis/f8906614a8403072f067b8d9c3b5206a to your computer and use it in GitHub Desktop.
Save Macadoshis/f8906614a8403072f067b8d9c3b5206a to your computer and use it in GitHub Desktop.
gist
ALTER TABLE [EstimationSparePart]
ADD
[IsFreeOfCharge] BIT NULL,
[IsFreeOfChargeInitial] BIT NULL
GO
UPDATE [EstimationSparePart]
SET [IsFreeOfCharge] = 0, [IsFreeOfChargeInitial] = 0
GO
ALTER TABLE [EstimationSparePart]
ALTER COLUMN IsFreeOfCharge BIT NOT NULL
GO
ALTER TABLE [EstimationSparePart]
ALTER COLUMN IsFreeOfChargeInitial BIT NOT NULL
GO
ALTER TABLE [EstimationMDWorkInstruction]
ADD
[IsCustomerRequest] BIT NULL,
[IsFreeOfChargeInitial] BIT NULL,
[IsCustomerRequestInitial] BIT NULL
GO
UPDATE [EstimationMDWorkInstruction]
SET
[IsCustomerRequest] = 0,
[IsFreeOfChargeInitial] = 0,
[IsCustomerRequestInitial] = 0
GO
ALTER TABLE [EstimationMDWorkInstruction]
ALTER COLUMN IsCustomerRequest BIT NOT NULL
GO
ALTER TABLE [EstimationMDWorkInstruction]
ALTER COLUMN IsFreeOfChargeInitial BIT NOT NULL
GO
ALTER TABLE [EstimationMDWorkInstruction]
ALTER COLUMN IsCustomerRequestInitial BIT NOT NULL
GO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment