Show contents 

Db > Db Assembly Interfaces > ILog > ILog.UpdateLog

ILog.UpdateLog

Syntax

UpdateLog;

Description

The UpdateLog method updates log table structure on database server according to structure of current log table.

Comments

The method is analog of the AlterLog method. At operation of the UpdateLog method, the structure of current log table in repository is taken as table structure that should be updated.

Example

Sub UserProc;
Var
    Mb: IMetabase;
    MbObj: IMetabaseObject;
    Log: ILog;
    Fields: ITableField;
Begin
    Mb:=MetaBaseClass.Active;
    MbObj:=Mb.ItemById("NewLog").Edit;
    Log:=MbObj As ILog;
    Fields:=Log.Fields.Add;
    Fields.Id:="PoleX";
    Fields.Name:="PoleX";
    Fields.DataType:=DbDataType.Integer;
    Fields.Size:=10;
    Log.UpdateLog;
End Sub UserProc;

After executing the example, the log table field is added to database without changing log structure in repository. The log identifier is NewLog.

See also:

ILog