IF COL_LENGTH('dbo.cust_wait_pakin', 'container_no') IS NULL
BEGIN
    ALTER TABLE [dbo].[cust_wait_pakin]
        ADD [container_no] NVARCHAR(100) NULL;
END
GO

IF COL_LENGTH('dbo.cust_wait_pakin', 'teu') IS NULL
BEGIN
    ALTER TABLE [dbo].[cust_wait_pakin]
        ADD [teu] INT NULL;
END
GO

IF COL_LENGTH('dbo.cust_wait_pakin', 'plate_no') IS NULL
BEGIN
    ALTER TABLE [dbo].[cust_wait_pakin]
        ADD [plate_no] NVARCHAR(100) NULL;
END
GO

IF COL_LENGTH('dbo.cust_wait_pakin', 'train_no') IS NULL
BEGIN
    ALTER TABLE [dbo].[cust_wait_pakin]
        ADD [train_no] NVARCHAR(100) NULL;
END
GO

IF COL_LENGTH('dbo.cust_wait_pakin', 'freq_type') IS NULL
BEGIN
    ALTER TABLE [dbo].[cust_wait_pakin]
        ADD [freq_type] INT NULL;
END
GO

IF COL_LENGTH('dbo.cust_wait_pakin', 'cube_number') IS NULL
BEGIN
    ALTER TABLE [dbo].[cust_wait_pakin]
        ADD [cube_number] DECIMAL(18, 4) NULL;
END
GO

IF COL_LENGTH('dbo.cust_wait_pakin_log', 'container_no') IS NULL
BEGIN
    ALTER TABLE [dbo].[cust_wait_pakin_log]
        ADD [container_no] NVARCHAR(100) NULL;
END
GO

IF COL_LENGTH('dbo.cust_wait_pakin_log', 'teu') IS NULL
BEGIN
    ALTER TABLE [dbo].[cust_wait_pakin_log]
        ADD [teu] INT NULL;
END
GO

IF COL_LENGTH('dbo.cust_wait_pakin_log', 'plate_no') IS NULL
BEGIN
    ALTER TABLE [dbo].[cust_wait_pakin_log]
        ADD [plate_no] NVARCHAR(100) NULL;
END
GO

IF COL_LENGTH('dbo.cust_wait_pakin_log', 'train_no') IS NULL
BEGIN
    ALTER TABLE [dbo].[cust_wait_pakin_log]
        ADD [train_no] NVARCHAR(100) NULL;
END
GO

IF COL_LENGTH('dbo.cust_wait_pakin_log', 'freq_type') IS NULL
BEGIN
    ALTER TABLE [dbo].[cust_wait_pakin_log]
        ADD [freq_type] INT NULL;
END
GO

IF COL_LENGTH('dbo.cust_wait_pakin_log', 'cube_number') IS NULL
BEGIN
    ALTER TABLE [dbo].[cust_wait_pakin_log]
        ADD [cube_number] DECIMAL(18, 4) NULL;
END
GO
