Upgrade to some new nextcloud standards

This commit is contained in:
Matias De lellis
2020-05-30 18:33:01 -03:00
parent d417902d94
commit f7ab295a6c
21 changed files with 192 additions and 207 deletions

View File

@@ -1,207 +0,0 @@
<database>
<name>*dbname*</name>
<create>true</create>
<overwrite>false</overwrite>
<charset>utf8</charset>
<table>
<name>*dbprefix*quicknotes_notes</name>
<declaration>
<field>
<name>id</name>
<type>integer</type>
<notnull>true</notnull>
<autoincrement>true</autoincrement>
<unsigned>true</unsigned>
<primary>true</primary>
<length>8</length>
</field>
<field>
<name>user_id</name>
<type>text</type>
<length>200</length>
<default></default>
<notnull>true</notnull>
</field>
<field>
<name>title</name>
<type>text</type>
<length>200</length>
<default></default>
<notnull>true</notnull>
</field>
<field>
<name>content</name>
<type>clob</type>
<default></default>
<notnull>true</notnull>
</field>
<field>
<name>timestamp</name>
<type>integer</type>
<default>0</default>
<notnull>true</notnull>
<length>4</length>
</field>
<field>
<name>color_id</name>
<type>integer</type>
<notnull>true</notnull>
<length>8</length>
</field>
</declaration>
</table>
<table>
<name>*dbprefix*quicknotes_colors</name>
<declaration>
<field>
<name>id</name>
<type>integer</type>
<notnull>true</notnull>
<autoincrement>true</autoincrement>
<unsigned>true</unsigned>
<primary>true</primary>
<length>8</length>
</field>
<field>
<name>color</name>
<type>text</type>
</field>
</declaration>
</table>
<table>
<name>*dbprefix*quicknotes_tags</name>
<declaration>
<field>
<name>id</name>
<type>integer</type>
<notnull>true</notnull>
<autoincrement>true</autoincrement>
<unsigned>true</unsigned>
<primary>true</primary>
<length>8</length>
</field>
<field>
<name>user_id</name>
<type>text</type>
<length>200</length>
<default></default>
<notnull>true</notnull>
</field>
<field>
<name>name</name>
<type>text</type>
<length>200</length>
<default></default>
<notnull>true</notnull>
</field>
</declaration>
</table>
<table>
<name>*dbprefix*quicknotes_note_tags</name>
<declaration>
<field>
<name>id</name>
<type>integer</type>
<notnull>true</notnull>
<autoincrement>true</autoincrement>
<unsigned>true</unsigned>
<primary>true</primary>
<length>8</length>
</field>
<field>
<name>user_id</name>
<type>text</type>
<length>200</length>
<default></default>
<notnull>true</notnull>
</field>
<field>
<name>note_id</name>
<type>integer</type>
<notnull>true</notnull>
<unsigned>true</unsigned>
<length>8</length>
</field>
<field>
<name>tag_id</name>
<type>integer</type>
<notnull>true</notnull>
<unsigned>true</unsigned>
<length>8</length>
</field>
</declaration>
</table>
<table>
<name>*dbprefix*quicknotes_tasks</name>
<declaration>
<field>
<name>id</name>
<type>integer</type>
<notnull>true</notnull>
<autoincrement>true</autoincrement>
<unsigned>true</unsigned>
<primary>true</primary>
<length>8</length>
</field>
<field>
<name>note_id</name>
<type>integer</type>
<notnull>true</notnull>
<unsigned>true</unsigned>
<length>8</length>
</field>
<field>
<name>description</name>
<type>text</type>
<length>200</length>
<default></default>
<notnull>true</notnull>
</field>
<field>
<name>done</name>
<type>boolean</type>
<default>false</default>
<notnull>true</notnull>
</field>
<field>
<name>ordering</name>
<type>integer</type>
<default>0</default>
<notnull>true</notnull>
</field>
</declaration>
</table>
<table>
<name>*dbprefix*quicknotes_shares</name>
<declaration>
<field>
<name>id</name>
<type>integer</type>
<notnull>true</notnull>
<autoincrement>true</autoincrement>
<unsigned>true</unsigned>
<primary>true</primary>
<length>8</length>
</field>
<field>
<name>note_id</name>
<type>integer</type>
<notnull>true</notnull>
<unsigned>true</unsigned>
<length>8</length>
</field>
<field>
<name>shared_user</name>
<type>text</type>
<length>200</length>
<default></default>
</field>
<field>
<name>shared_group</name>
<type>text</type>
<length>200</length>
<default></default>
</field>
</declaration>
</table>
</database>