Skip to content

Commit

Permalink
[db] regenerated schema with DBops instead of AVPops
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-iancu committed Mar 1, 2024
1 parent 3d386f4 commit 2571904
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
]>

<database xmlns:xi="http://www.w3.org/2001/XInclude">
<name>AVP Operations</name>
<name>DB Operations</name>
<xi:include href="usr_preferences.xml"/>
</database>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
66 changes: 66 additions & 0 deletions scripts/pi_http/pi_framework.xml
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,19 @@
<column><field>cpl_xml</field><type>DB_BLOB</type></column>
<column><field>cpl_bin</field><type>DB_BLOB</type></column>
</db_table>
<!-- Declaration of usr_preferences table-->
<db_table id="usr_preferences">
<table_name>usr_preferences</table_name>
<db_url_id>mysql</db_url_id>
<column><field>id</field><type>DB_INT</type></column>
<column><field>uuid</field><type>DB_STR</type></column>
<column><field>username</field><type>DB_STR</type></column>
<column><field>domain</field><type>DB_STR</type></column>
<column><field>attribute</field><type>DB_STR</type></column>
<column><field>type</field><type>DB_INT</type></column>
<column><field>value</field><type>DB_STR</type></column>
<column><field>last_modified</field><type>DB_DATETIME</type></column>
</db_table>
<!-- Declaration of dialog table-->
<db_table id="dialog">
<table_name>dialog</table_name>
Expand Down Expand Up @@ -2556,6 +2569,59 @@
</clause_cols>
</cmd>
</mod>
<!-- usr_preferences provisionning -->
<mod><mod_name>usr_preferences</mod_name>
<cmd><cmd_name>show</cmd_name>
<db_table_id>usr_preferences</db_table_id>
<cmd_type>DB_QUERY</cmd_type>
<query_cols>
<col><field>id</field><link_cmd>update</link_cmd></col>
<col><field>uuid</field></col>
<col><field>username</field></col>
<col><field>domain</field></col>
<col><field>attribute</field></col>
<col><field>type</field></col>
<col><field>value</field></col>
<col><field>last_modified</field></col>
</query_cols>
</cmd>
<cmd><cmd_name>add</cmd_name>
<db_table_id>usr_preferences</db_table_id>
<cmd_type>DB_INSERT</cmd_type>
<query_cols>
<col><field>uuid</field></col>
<col><field>username</field></col>
<col><field>domain</field></col>
<col><field>attribute</field></col>
<col><field>type</field></col>
<col><field>value</field></col>
<col><field>last_modified</field></col>
</query_cols>
</cmd>
<cmd><cmd_name>update</cmd_name>
<db_table_id>usr_preferences</db_table_id>
<cmd_type>DB_UPDATE</cmd_type>
<clause_cols>
<col><field>id</field><operator>=</operator></col>
</clause_cols>
<query_cols>
<col><field>uuid</field></col>
<col><field>username</field></col>
<col><field>domain</field></col>
<col><field>attribute</field></col>
<col><field>type</field></col>
<col><field>value</field></col>
<col><field>last_modified</field></col>
</query_cols>
</cmd>
<cmd><cmd_name>delete</cmd_name>
<db_table_id>usr_preferences</db_table_id>
<cmd_type>DB_DELETE</cmd_type>
<clause_cols>
<col><field>id</field><operator>=</operator></col>
</clause_cols>
</cmd>
</mod>
<!-- dialog provisionning -->
<mod><mod_name>dialog</mod_name>
<cmd><cmd_name>show</cmd_name>
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 2571904

Please sign in to comment.