/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BOS_table.sql **/
/** EXEC p_AlterColumn 'T_SIGNER_RECORED', 'FKEY', 'VARCHAR(512)', 'NOT NULL', '0100', ''' ''';**/

IF NOT EXISTS (SELECT 1 FROM KSQL_USERTABLES WHERE KSQL_TABNAME = 'T_MSG_PROMOTE_CONFIG') 
 CREATE TABLE T_MSG_PROMOTE_CONFIG (
FID BIGINT DEFAULT 0 NOT NULL,
FUSERID BIGINT DEFAULT 0 NOT NULL,
FRECEIVEMESSAGE CHAR(1) DEFAULT '0',
FCREATORID BIGINT DEFAULT 0 NOT NULL,
FCREATETIME DATETIME,
FMODIFIERID BIGINT DEFAULT 0 NOT NULL,
FMODIFYTIME DATETIME
);


IF NOT EXISTS (SELECT 1 FROM KSQL_USERTABLES WHERE KSQL_TABNAME = 'T_MSG_PROMOTE') 
 CREATE TABLE T_MSG_PROMOTE (
FID BIGINT DEFAULT 0 NOT NULL,
FMESSAGEID VARCHAR(50) DEFAULT ' ' NOT NULL,
FLOCALID BIGINT,
FCREATORID BIGINT DEFAULT 0 NOT NULL,
FCREATETIME DATETIME,
FMODIFIERID BIGINT DEFAULT 0 NOT NULL,
FMODIFYTIME DATETIME
);



/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BOS_table.sql **/
