<query id="updateDocument" action="update" priority="LOW">
    <tables>
        <table name="documents" />
    </tables>
    <columns>
        <column name="module_srl" var="module_srl" filter="number" default="0" />
        <column name="category_srl" var="category_srl" filter="number" default="0" />
        <column name="is_notice" var="is_notice" notnull="notnull" default="N" />
        <column name="title" var="title" notnull="notnull" minlength="1" maxlength="250" />
        <column name="title_bold" var="title_bold" default="N" />
        <column name="title_color" var="title_color" default="N" />
        <column name="content" var="content" notnull="notnull" />
        <column name="uploaded_count" var="uploaded_count" default="0" />
        <column name="password" var="password" maxlength="60" />
        <column name="nick_name" var="nick_name" minlength="1" maxlength="40" />
        <column name="member_srl" var="member_srl" />
        <column name="user_id" var="user_id" />
        <column name="user_name" var="user_name" default="" />
        <column name="email_address" var="email_address" filter="email" maxlength="250" />
        <column name="homepage" var="homepage" filter="homepage" maxlength="250" />
        <column name="tags" var="tags" default="" />
        <column name="extra_vars" var="extra_vars" />
        <column name="regdate" var="regdate" />
        <column name="last_update" var="last_update" default="curdate()" />
        <column name="ipaddress" var="ipaddress" default="ipaddress()" />
        <column name="list_order" var="list_order" />
        <column name="update_order" var="update_order" default="0" />
        <column name="allow_trackback" var="allow_trackback" default="Y" />
        <column name="notify_message" var="notify_message" default="N" />
        <column name="status" var="status" default="PUBLIC" />
        <column name="comment_status" var="commentStatus" default="ALLOW" />
    </columns>
    <conditions>
        <condition operation="equal" column="document_srl" var="document_srl" filter="number" notnull="notnull" />
    </conditions>
</query>
