diff options
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/database.xml | 452 | ||||
-rw-r--r-- | appinfo/info.xml | 9 | ||||
-rw-r--r-- | appinfo/register_command.php | 28 |
3 files changed, 9 insertions, 480 deletions
diff --git a/appinfo/database.xml b/appinfo/database.xml deleted file mode 100644 index d210d3f45..000000000 --- a/appinfo/database.xml +++ /dev/null @@ -1,452 +0,0 @@ -<database> - <name>*dbname*</name> - <create>true</create> - <overwrite>false</overwrite> - <charset>utf8</charset> - <table> - <name>*dbprefix*news_folders</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>parent_id</name> - <type>integer</type> - <length>8</length> - <notnull>false</notnull> - </field> - <field> - <name>name</name> - <type>text</type> - <length>100</length> - <notnull>true</notnull> - </field> - <field> - <name>user_id</name> - <type>text</type> - <default></default> - <notnull>true</notnull> - <length>64</length> - </field> - <field> - <name>opened</name> - <type>boolean</type> - <default>true</default> - <notnull>true</notnull> - </field> - <field> - <name>deleted_at</name> - <type>integer</type> - <length>8</length> - <default>0</default> - <notnull>false</notnull> - <unsigned>true</unsigned> - </field> - <field> - <name>last_modified</name> - <type>integer</type> - <default>0</default> - <length>8</length> - <notnull>false</notnull> - <unsigned>true</unsigned> - </field> - - <index> - <name>news_folders_last_mod_idx</name> - <field> - <name>last_modified</name> - </field> - </index> - - <index> - <name>news_folders_parent_id_idx</name> - <field> - <name>parent_id</name> - </field> - </index> - - <index> - <name>news_folders_user_id_idx</name> - <field> - <name>user_id</name> - </field> - </index> - </declaration> - </table> - - <table> - <name>*dbprefix*news_feeds</name> - <declaration> - <field> - <name>id</name> - <type>integer</type> - <notnull>true</notnull> - <autoincrement>true</autoincrement> - <primary>true</primary> - <length>8</length> - <unsigned>true</unsigned> - </field> - <field> - <name>user_id</name> - <type>text</type> - <default></default> - <notnull>true</notnull> - <length>64</length> - </field> - <field> - <name>last_modified</name> - <type>integer</type> - <default>0</default> - <length>8</length> - <notnull>false</notnull> - <unsigned>true</unsigned> - </field> - <field> - <name>url_hash</name> - <type>text</type> - <length>32</length> - <notnull>true</notnull> - </field> - <field> - <name>url</name> - <type>clob</type> - <notnull>true</notnull> - </field> - <field> - <name>location</name> - <type>clob</type> - <notnull>false</notnull> - </field> - <field> - <name>title</name> - <type>clob</type> - <notnull>true</notnull> - </field> - <field> - <name>link</name> - <type>clob</type> - <notnull>false</notnull> - </field> - <field> - <name>favicon_link</name> - <type>clob</type> - <notnull>false</notnull> - </field> - <field> - <name>http_last_modified</name> - <type>clob</type> - <notnull>false</notnull> - </field> - <field> - <name>http_etag</name> - <type>clob</type> - <notnull>false</notnull> - </field> - <field> - <name>added</name> - <type>integer</type> - <default>0</default> - <length>8</length> - <notnull>false</notnull> - <unsigned>true</unsigned> - </field> - <field> - <name>articles_per_update</name> - <type>integer</type> - <default>0</default> - <length>8</length> - <notnull>true</notnull> - </field> - <field> - <name>update_error_count</name> - <type>integer</type> - <default>0</default> - <length>8</length> - <notnull>true</notnull> - </field> - <field> - <name>last_update_error</name> - <type>clob</type> - <default></default> - <notnull>false</notnull> - </field> - <field> - <name>basic_auth_user</name> - <type>clob</type> - <default></default> - <notnull>false</notnull> - </field> - <field> - <name>basic_auth_password</name> - <type>clob</type> - <default></default> - <notnull>false</notnull> - </field> - <field> - <name>deleted_at</name> - <type>integer</type> - <default>0</default> - <notnull>false</notnull> - <length>8</length> - <unsigned>true</unsigned> - </field> - <field> - <name>folder_id</name> - <type>integer</type> - <length>8</length> - <notnull>true</notnull> - </field> - <field> - <name>prevent_update</name> - <type>boolean</type> - <default>false</default> - <notnull>true</notnull> - </field> - <field> - <name>pinned</name> - <type>boolean</type> - <default>false</default> - <notnull>true</notnull> - </field> - <field> - <name>full_text_enabled</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> - <field> - <name>update_mode</name> - <type>integer</type> - <default>0</default> - <notnull>true</notnull> - </field> - - <index> - <name>news_feeds_last_mod_idx</name> - <field> - <name>last_modified</name> - </field> - </index> - - <index> - <name>news_feeds_user_id_index</name> - <field> - <name>user_id</name> - </field> - </index> - - <index> - <name>news_feeds_folder_id_index</name> - <field> - <name>folder_id</name> - </field> - </index> - - <index> - <name>news_feeds_url_hash_index</name> - <field> - <name>url_hash</name> - </field> - </index> - </declaration> - </table> - - <table> - <name>*dbprefix*news_items</name> - <declaration> - <field> - <name>id</name> - <type>integer</type> - <length>8</length> - <notnull>true</notnull> - <autoincrement>true</autoincrement> - <primary>true</primary> - <unsigned>true</unsigned> - </field> - <field> - <name>guid_hash</name> - <type>text</type> - <notnull>true</notnull> - <length>32</length> - </field> - <field> - <name>fingerprint</name> - <type>text</type> - <notnull>false</notnull> - <length>32</length> - </field> - <field> - <name>content_hash</name> - <type>text</type> - <notnull>false</notnull> - <length>32</length> - </field> - <field> - <name>rtl</name> - <type>boolean</type> - <notnull>true</notnull> - <default>false</default> - </field> - <field> - <name>search_index</name> - <type>clob</type> - </field> - <field> - <name>guid</name> - <type>clob</type> - <notnull>true</notnull> - </field> - <field> - <name>url</name> - <type>clob</type> - </field> - <field> - <name>title</name> - <type>clob</type> - </field> - <field> - <name>author</name> - <type>clob</type> - <notnull>false</notnull> - </field> - <field> - <name>pub_date</name> - <type>integer</type> - <length>8</length> - <unsigned>true</unsigned> - <notnull>false</notnull> - </field> - <field> - <name>updated_date</name> - <type>integer</type> - <length>8</length> - <unsigned>true</unsigned> - <notnull>false</notnull> - </field> - <field> - <name>body</name> - <type>clob</type> - <notnull>false</notnull> - </field> - <field> - <name>enclosure_mime</name> - <type>clob</type> - <notnull>false</notnull> - </field> - <field> - <name>enclosure_link</name> - <type>clob</type> - <notnull>false</notnull> - </field> - <field> - <name>media_thumbnail</name> - <type>clob</type> - <notnull>false</notnull> - </field> - <field> - <name>media_description</name> - <type>clob</type> - <notnull>false</notnull> - </field> - <field> - <name>feed_id</name> - <type>integer</type> - <length>8</length> - <notnull>true</notnull> - </field> - <field> - <name>status</name> - <type>integer</type> - <length>8</length> - <default>0</default> - <notnull>true</notnull> - </field> - <field> - <name>unread</name> - <type>boolean</type> - <default>false</default> - <notnull>true</notnull> - </field> - <field> - <name>starred</name> - <type>boolean</type> - <default>false</default> - <notnull>true</notnull> - </field> - <field> - <name>last_modified</name> - <type>integer</type> - <default>0</default> - <length>8</length> - <notnull>false</notnull> - <unsigned>true</unsigned> - </field> - - <index> - <name>news_items_last_mod_idx</name> - <field> - <name>last_modified</name> - </field> - </index> - - <index> - <name>news_items_fingerprint_idx</name> - <field> - <name>fingerprint</name> - </field> - </index> - - <index> - <name>news_items_item_guid</name> - <field> - <name>guid_hash</name> - </field> - <field> - <name>feed_id</name> - </field> - </index> - - <index> - <name>news_items_unread_feed_id</name> - <field> - <name>unread</name> - </field> - <field> - <name>feed_id</name> - </field> - </index> - - <index> - <name>news_items_starred_feed_id</name> - <field> - <name>starred</name> - </field> - <field> - <name>feed_id</name> - </field> - </index> - - <index> - <name>news_items_unread_id</name> - <field> - <name>unread</name> - </field> - <field> - <name>id</name> - </field> - </index> - </declaration> - </table> -</database> diff --git a/appinfo/info.xml b/appinfo/info.xml index b41983682..6845dc39c 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -50,6 +50,15 @@ Before you update to a new version, [check the changelog](https://github.com/nex </post-migration> </repair-steps> + <commands> + <command>OCA\News\Command\ExploreGenerator</command> + <command>OCA\News\Command\ShowFeed</command> + <command>OCA\News\Command\Updater\AllFeeds</command> + <command>OCA\News\Command\Updater\UpdateFeed</command> + <command>OCA\News\Command\Updater\BeforeUpdate</command> + <command>OCA\News\Command\Updater\AfterUpdate</command> + </commands> + <settings> <admin>OCA\News\Settings\Admin</admin> <admin-section>OCA\News\Settings\Section</admin-section> diff --git a/appinfo/register_command.php b/appinfo/register_command.php deleted file mode 100644 index 1fc006b76..000000000 --- a/appinfo/register_command.php +++ /dev/null @@ -1,28 +0,0 @@ -<?php -/** - * Nextcloud - News - * - * This file is licensed under the Affero General Public License version 3 or - * later. See the COPYING file. - * - * @author Bernhard Posselt <dev@bernhard-posselt.com> - * @copyright Bernhard Posselt 2016 - */ - -namespace OCA\News\AppInfo; - -use OCA\News\Command\ShowFeed; -use OCA\News\Command\Updater\UpdateFeed; -use OCA\News\Command\Updater\AllFeeds; -use OCA\News\Command\Updater\BeforeUpdate; -use OCA\News\Command\Updater\AfterUpdate; -use OCA\News\Command\ExploreGenerator; - -$app = new Application(); -$container = $app->getContainer(); -$application->add($container->query(AllFeeds::class)); -$application->add($container->query(UpdateFeed::class)); -$application->add($container->query(BeforeUpdate::class)); -$application->add($container->query(AfterUpdate::class)); -$application->add($container->query(ExploreGenerator::class)); -$application->add($container->query(ShowFeed::class)); |