
 EXEC P_ALTERPK 'PK_T_PRIVACY_UPGRADE_HISTORY', 'T_PRIVACY_UPGRADE_HISTORY', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_PRIVACY_UPGRADE_HISTORY' AND KSQL_INDNAME = 'IDX_PRIVACY_UP_TAGID') CREATE INDEX IDX_PRIVACY_UP_TAGID ON T_PRIVACY_UPGRADE_HISTORY ( FTAGID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_PRIVACY_UPGRADE_HISTORY' AND KSQL_INDNAME = 'IDX_PRIVACY_UP_ROWID') CREATE INDEX IDX_PRIVACY_UP_ROWID ON T_PRIVACY_UPGRADE_HISTORY ( FTPLENTRYROWID );


 EXEC P_ALTERPK 'PK_T_PRIVACY_UPGRADEPROTOCOL', 'T_PRIVACY_UPGRADEPROTOCOL', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_PRIVACY_UPGRADEPROTOCOL' AND KSQL_INDNAME = 'IDX_PRIVACYPOTOCOL_USERID') CREATE INDEX IDX_PRIVACYPOTOCOL_USERID ON T_PRIVACY_UPGRADEPROTOCOL ( FUSERID );



