/**Begin D:\PDM_UPGRADE\PDM1\FMM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FMM_DEFAULTORG' AND KSQL_COL_NAME ='FCALLINORGID') 
 ALTER TABLE T_FMM_DEFAULTORG ADD (FCALLINORGID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FMM_DEFAULTORG' AND KSQL_COL_NAME ='FCALLINWAREHOUSEID') 
 ALTER TABLE T_FMM_DEFAULTORG ADD (FCALLINWAREHOUSEID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FMM_DEFAULTORG' AND KSQL_COL_NAME ='FCALLINLOCATIONID') 
 ALTER TABLE T_FMM_DEFAULTORG ADD (FCALLINLOCATIONID BIGINT DEFAULT 0 NOT NULL );

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