handling database in Packages

English! place to talk about development, programming and coding
Post Reply
root
Administrator
Posts: 4250
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

handling database in Packages

Post by root »

Hi,

does anybody knows what can be wrong with this xml in my sopm?

Code: Select all

<DatabaseUpgrade>
         <Insert Type="post" Table="ticket_state_type" Version="0.1">
            <Data Key="name" Type="Quote">pending job</Data>
            <Data Key="create_time">current_timestamp</Data>
            <Data Key="create_by">1</Data>
            <Data Key="change_time">current_timestamp</Data>
            <Data Key="change_by">1</Data>
         </Insert>
         <Insert Type="post" Table="ticket_state" Version="0.1">
            <Data Key="Name">closed</Data>
            <Data Key="type_id">3</Data>
            <Data Key="valid_id">1</Data>
            <Data Key="create_time">current_timestamp</Data>
            <Data Key="create_by">1</Data>
            <Data Key="change_time">current_timestamp</Data>
            <Data Key="change_by">1</Data>
         </Insert>
</DatabaseUpgrade>
otrs.PackageManager.pl show me this error:
duplicate attribute at line 25, column 54


My second question is how to get the type_id for new created TicketStateTypes.

tia
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Post Reply