IF (NOT EXISTS 
	(SELECT * FROM INFORMATION_SCHEMA.TABLES 
    WHERE TABLE_NAME = 'pal_ModuleCustomPath'))
BEGIN
	CREATE TABLE [dbo].[pal_ModuleCustomPath](
		[moduleId] [int] NOT NULL,
		[customPath] [varchar](150) NULL,
	 CONSTRAINT [PK_pal_ModuleCustom] PRIMARY KEY CLUSTERED 
	(
		[moduleId] ASC
	)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
	) ON [PRIMARY]
END



IF NOT EXISTS(
    SELECT * FROM sys.columns 
    WHERE Name      = N'custom'
      AND Object_ID = Object_ID(N'pal_Task'))
BEGIN
    ALTER TABLE pal_Task
	ADD custom varchar(MAX) NULL; 
END