fulltextsearch/appinfo/database.xml

170 строки
3.6 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!--
~ FullTextSearch - Full text search framework for Nextcloud
~
~ This file is licensed under the Affero General Public License version 3 or
~ later. See the COPYING file.
~
~ @author Maxence Lange <maxence@artificial-owl.com>
~ @copyright 2018
~ @license GNU AGPL version 3 or any later version
~
~ This program is free software: you can redistribute it and/or modify
~ it under the terms of the GNU Affero General Public License as
~ published by the Free Software Foundation, either version 3 of the
~ License, or (at your option) any later version.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU Affero General Public License for more details.
~
~ You should have received a copy of the GNU Affero General Public License
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
~
-->
<database xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/database.xsd">
<name>*dbname*</name>
<create>true</create>
<overwrite>false</overwrite>
<charset>utf8</charset>
<table>
<name>*dbprefix*fulltextsearch_indexes</name>
<declaration>
<field>
<name>provider_id</name>
<type>text</type>
<length>255</length>
<notnull>true</notnull>
</field>
<field>
<name>document_id</name>
<type>integer</type>
<length>4</length>
<notnull>true</notnull>
</field>
<field>
<name>source</name>
<type>text</type>
<length>64</length>
<notnull>false</notnull>
</field>
<field>
<name>owner_id</name>
<type>text</type>
<length>64</length>
<notnull>true</notnull>
</field>
<field>
<name>status</name>
<type>integer</type>
<length>1</length>
<notnull>true</notnull>
</field>
<field>
<name>options</name>
<type>text</type>
<length>511</length>
<notnull>false</notnull>
</field>
<field>
<name>err</name>
<type>integer</type>
<length>1</length>
<notnull>true</notnull>
</field>
<field>
<name>message</name>
<type>text</type>
<length>4000</length>
<notnull>false</notnull>
</field>
<field>
<name>indexed</name>
<type>integer</type>
<length>6</length>
<notnull>false</notnull>
</field>
<index>
<name>unique_document</name>
<primary>true</primary>
<unique>true</unique>
<field>
<name>provider_id</name>
</field>
<field>
<name>document_id</name>
</field>
</index>
</declaration>
</table>
<table>
<name>*dbprefix*fulltextsearch_ticks</name>
<declaration>
<field>
<name>id</name>
<type>integer</type>
<length>7</length>
<unsigned>true</unsigned>
<notnull>true</notnull>
<autoincrement>true</autoincrement>
<primary>true</primary>
</field>
<field>
<name>source</name>
<type>text</type>
<length>128</length>
</field>
<field>
<name>data</name>
<type>text</type>
<length>6000</length>
</field>
<field>
<name>status</name>
<type>text</type>
<length>32</length>
</field>
<field>
<name>action</name>
<type>text</type>
<length>64</length>
</field>
<field>
<name>first_tick</name>
<type>integer</type>
<length>6</length>
</field>
<field>
<name>tick</name>
<type>integer</type>
<length>6</length>
</field>
</declaration>
</table>
</database>