/**Begin D:\PDM_UPGRADE\PDM1\FPM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FPM_ACLDEDUCTION' AND KSQL_COL_NAME IN ('FACLUPDATETIME'))
ALTER TABLE T_FPM_ACLDEDUCTION ADD (FACLUPDATETIME NVARCHAR(1024) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FPM_ACLDEDUCTION' AND KSQL_COL_NAME IN ('FACLUPDATETIMECODE'))
ALTER TABLE T_FPM_ACLDEDUCTION ADD (FACLUPDATETIMECODE NVARCHAR(1024) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FPM_ACLDEDUCTION' AND KSQL_COL_NAME IN ('FACLUPDATEAMTNAME'))
ALTER TABLE T_FPM_ACLDEDUCTION ADD (FACLUPDATEAMTNAME NVARCHAR(150) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FPM_ACLDEDUCTION' AND KSQL_COL_NAME IN ('FACLUPDATEAMTFIELD'))
ALTER TABLE T_FPM_ACLDEDUCTION ADD (FACLUPDATEAMTFIELD NVARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FPM_EXECUTETIME' AND KSQL_COL_NAME IN ('FENABLEACLUPDATE'))
ALTER TABLE T_FPM_EXECUTETIME ADD (FENABLEACLUPDATE CHAR(1) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FPM_EXECUTEPLAN' AND KSQL_COL_NAME IN ('FACLREMAINAMT'))
ALTER TABLE T_FPM_EXECUTEPLAN ADD (FACLREMAINAMT DECIMAL(23,10) DEFAULT 0 NOT NULL );

/**End D:\PDM_UPGRADE\PDM1\FPM_table.sql **/
