/**Begin D:\work\PDM\PDM_UPGRADE_1224\PDM1\HRCS_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERTABLES WHERE KSQL_TABNAME = 'T_HRCS_PRESETCHANGE')
 CREATE TABLE T_HRCS_PRESETCHANGE (
FID BIGINT DEFAULT 0 NOT NULL,
FBASEDATA VARCHAR(255) DEFAULT ' ' NOT NULL,
FBDID BIGINT DEFAULT 0 NOT NULL,
FISCHANGE VARCHAR(2) DEFAULT ' ' NOT NULL,
FCREATORID BIGINT DEFAULT 0 NOT NULL,
FCREATETIME DATETIME,
FMODIFIERID BIGINT DEFAULT 0 NOT NULL,
FMODIFYTIME DATETIME
);

/**End D:\work\PDM\PDM_UPGRADE_1224\PDM1\HRCS_table.sql **/

/**Begin D:\work\PDM\PDM_UPGRADE_1224\PDM1\HRCS_constraint.sql **/
 EXEC P_ALTERPK 'PK_HRCS_PRESETCHANGE', 'T_HRCS_PRESETCHANGE', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_HRCS_PRESETCHANGE') CREATE INDEX IDX_T_HRCS_PRESETCHANGE ON T_HRCS_PRESETCHANGE ( FBASEDATA ,FBDID );

/**End D:\work\PDM\PDM_UPGRADE_1224\PDM1\HRCS_constraint.sql **/
