/**Begin C:\PDM_UPGRADE\PDM1\PUR_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERTABLES WHERE KSQL_TABNAME = 'T_PUR_SRMSCOREATT') 
 CREATE TABLE T_PUR_SRMSCOREATT (
FPKID BIGINT DEFAULT 0 NOT NULL,
FDETAILID BIGINT DEFAULT 0 NOT NULL,
FBASEDATAID BIGINT DEFAULT 0 NOT NULL
);



/**End C:\PDM_UPGRADE\PDM1\PUR_table.sql **/

/**Begin C:\PDM_UPGRADE\PDM1\PUR_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_PUR_SRMSCOREATT', 'T_PUR_SRMSCOREATT', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PUR_SRMSCOREATT_FBDID') CREATE INDEX IDX_PUR_SRMSCOREATT_FBDID ON T_PUR_SRMSCOREATT ( FBASEDATAID );



/**End C:\PDM_UPGRADE\PDM1\PUR_constraint.sql **/

