mirror of
https://github.com/friendica/friendica
synced 2024-12-22 22:00:16 +00:00
Remove addon table from DB structure
- It isn't used anymore in favor of a Config key
This commit is contained in:
parent
b1b3b0ffe7
commit
dffd28cf20
3 changed files with 20 additions and 82 deletions
16
database.sql
16
database.sql
|
@ -340,22 +340,6 @@ CREATE TABLE IF NOT EXISTS `account-user` (
|
||||||
FOREIGN KEY (`uid`) REFERENCES `user` (`uid`) ON UPDATE RESTRICT ON DELETE CASCADE
|
FOREIGN KEY (`uid`) REFERENCES `user` (`uid`) ON UPDATE RESTRICT ON DELETE CASCADE
|
||||||
) DEFAULT COLLATE utf8mb4_general_ci COMMENT='Remote and local accounts';
|
) DEFAULT COLLATE utf8mb4_general_ci COMMENT='Remote and local accounts';
|
||||||
|
|
||||||
--
|
|
||||||
-- TABLE addon
|
|
||||||
--
|
|
||||||
CREATE TABLE IF NOT EXISTS `addon` (
|
|
||||||
`id` int unsigned NOT NULL auto_increment COMMENT '',
|
|
||||||
`name` varchar(50) NOT NULL DEFAULT '' COMMENT 'addon base (file)name',
|
|
||||||
`version` varchar(50) NOT NULL DEFAULT '' COMMENT 'currently unused',
|
|
||||||
`installed` boolean NOT NULL DEFAULT '0' COMMENT 'currently always 1',
|
|
||||||
`hidden` boolean NOT NULL DEFAULT '0' COMMENT 'currently unused',
|
|
||||||
`timestamp` int unsigned NOT NULL DEFAULT 0 COMMENT 'file timestamp to check for reloads',
|
|
||||||
`plugin_admin` boolean NOT NULL DEFAULT '0' COMMENT '1 = has admin config, 0 = has no admin config',
|
|
||||||
PRIMARY KEY(`id`),
|
|
||||||
INDEX `installed_name` (`installed`,`name`),
|
|
||||||
UNIQUE INDEX `name` (`name`)
|
|
||||||
) DEFAULT COLLATE utf8mb4_general_ci COMMENT='registered addons';
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- TABLE apcontact
|
-- TABLE apcontact
|
||||||
--
|
--
|
||||||
|
|
|
@ -1,29 +0,0 @@
|
||||||
Table addon
|
|
||||||
===========
|
|
||||||
|
|
||||||
registered addons
|
|
||||||
|
|
||||||
Fields
|
|
||||||
------
|
|
||||||
|
|
||||||
| Field | Description | Type | Null | Key | Default | Extra |
|
|
||||||
| ------------ | --------------------------------------------- | ------------ | ---- | --- | ------- | -------------- |
|
|
||||||
| id | | int unsigned | NO | PRI | NULL | auto_increment |
|
|
||||||
| name | addon base (file)name | varchar(50) | NO | | | |
|
|
||||||
| version | currently unused | varchar(50) | NO | | | |
|
|
||||||
| installed | currently always 1 | boolean | NO | | 0 | |
|
|
||||||
| hidden | currently unused | boolean | NO | | 0 | |
|
|
||||||
| timestamp | file timestamp to check for reloads | int unsigned | NO | | 0 | |
|
|
||||||
| plugin_admin | 1 = has admin config, 0 = has no admin config | boolean | NO | | 0 | |
|
|
||||||
|
|
||||||
Indexes
|
|
||||||
------------
|
|
||||||
|
|
||||||
| Name | Fields |
|
|
||||||
| -------------- | --------------- |
|
|
||||||
| PRIMARY | id |
|
|
||||||
| installed_name | installed, name |
|
|
||||||
| name | UNIQUE, name |
|
|
||||||
|
|
||||||
|
|
||||||
Return to [database documentation](help/database)
|
|
|
@ -399,23 +399,6 @@ return [
|
||||||
"uid_uri-id" => ["uid", "uri-id"],
|
"uid_uri-id" => ["uid", "uri-id"],
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"addon" => [
|
|
||||||
"comment" => "registered addons",
|
|
||||||
"fields" => [
|
|
||||||
"id" => ["type" => "int unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1", "comment" => ""],
|
|
||||||
"name" => ["type" => "varchar(50)", "not null" => "1", "default" => "", "comment" => "addon base (file)name"],
|
|
||||||
"version" => ["type" => "varchar(50)", "not null" => "1", "default" => "", "comment" => "currently unused"],
|
|
||||||
"installed" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "currently always 1"],
|
|
||||||
"hidden" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "currently unused"],
|
|
||||||
"timestamp" => ["type" => "int unsigned", "not null" => "1", "default" => "0", "comment" => "file timestamp to check for reloads"],
|
|
||||||
"plugin_admin" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "1 = has admin config, 0 = has no admin config"],
|
|
||||||
],
|
|
||||||
"indexes" => [
|
|
||||||
"PRIMARY" => ["id"],
|
|
||||||
"installed_name" => ["installed", "name"],
|
|
||||||
"name" => ["UNIQUE", "name"],
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"apcontact" => [
|
"apcontact" => [
|
||||||
"comment" => "ActivityPub compatible contacts - used in the ActivityPub implementation",
|
"comment" => "ActivityPub compatible contacts - used in the ActivityPub implementation",
|
||||||
"fields" => [
|
"fields" => [
|
||||||
|
|
Loading…
Reference in a new issue