CREATE TABLE R5SYNCLOG (
SNL_SYNCID INTEGER PRIMARY KEY AUTOINCREMENT,
SNL_GRIDNAME NVARCHAR (50) NOT NULL,
SNL_STATUS NVARCHAR (32) NOT NULL,
SNL_STATUS_MSG NVARCHAR (2000),
SNL_DUPLICATE_RECORDS INTEGER DEFAULT (0),
SNL_PROCESSED_RECORDS INTEGER DEFAULT (0),
SNL_UPDATED DATETIME DEFAULT (CURRENT_TIMESTAMP)
);
UPDATE R5APPSETTINGS SET AST_VALUE = '11413' WHERE AST_NAME='DBVERSION';
