mirror of
https://github.com/friendica/friendica
synced 2024-11-14 16:22:53 +00:00
Trying "tinyint"
This commit is contained in:
parent
b2e7a9cc5c
commit
cd4a2bce9c
2 changed files with 4 additions and 4 deletions
|
@ -661,7 +661,7 @@ CREATE TABLE IF NOT EXISTS `item` (
|
||||||
`author-id` int unsigned NOT NULL DEFAULT 0 COMMENT 'Link to the contact table with uid=0 of the author of this item',
|
`author-id` int unsigned NOT NULL DEFAULT 0 COMMENT 'Link to the contact table with uid=0 of the author of this item',
|
||||||
`causer-id` int unsigned NOT NULL DEFAULT 0 COMMENT 'Link to the contact table with uid=0 of the contact that caused the item creation',
|
`causer-id` int unsigned NOT NULL DEFAULT 0 COMMENT 'Link to the contact table with uid=0 of the contact that caused the item creation',
|
||||||
`icid` int unsigned COMMENT 'Id of the item-content table entry that contains the whole item content',
|
`icid` int unsigned COMMENT 'Id of the item-content table entry that contains the whole item content',
|
||||||
`vid` int unsigned COMMENT 'Id of the verb table entry that contains the activity verbs',
|
`vid` tinyint unsigned COMMENT 'Id of the verb table entry that contains the activity verbs',
|
||||||
`extid` varchar(255) NOT NULL DEFAULT '' COMMENT '',
|
`extid` varchar(255) NOT NULL DEFAULT '' COMMENT '',
|
||||||
`post-type` tinyint unsigned NOT NULL DEFAULT 0 COMMENT 'Post type (personal note, bookmark, ...)',
|
`post-type` tinyint unsigned NOT NULL DEFAULT 0 COMMENT 'Post type (personal note, bookmark, ...)',
|
||||||
`global` boolean NOT NULL DEFAULT '0' COMMENT '',
|
`global` boolean NOT NULL DEFAULT '0' COMMENT '',
|
||||||
|
@ -1430,7 +1430,7 @@ CREATE TABLE IF NOT EXISTS `user-item` (
|
||||||
-- TABLE verb
|
-- TABLE verb
|
||||||
--
|
--
|
||||||
CREATE TABLE IF NOT EXISTS `verb` (
|
CREATE TABLE IF NOT EXISTS `verb` (
|
||||||
`id` int unsigned NOT NULL auto_increment,
|
`id` tinyint unsigned NOT NULL auto_increment,
|
||||||
`name` varchar(100) NOT NULL DEFAULT '' COMMENT '',
|
`name` varchar(100) NOT NULL DEFAULT '' COMMENT '',
|
||||||
PRIMARY KEY(`id`)
|
PRIMARY KEY(`id`)
|
||||||
) DEFAULT COLLATE utf8mb4_general_ci COMMENT='Activity Verbs';
|
) DEFAULT COLLATE utf8mb4_general_ci COMMENT='Activity Verbs';
|
||||||
|
|
|
@ -726,7 +726,7 @@ return [
|
||||||
"author-id" => ["type" => "int unsigned", "not null" => "1", "default" => "0", "foreign" => ["contact" => "id", "on delete" => "restrict"], "comment" => "Link to the contact table with uid=0 of the author of this item"],
|
"author-id" => ["type" => "int unsigned", "not null" => "1", "default" => "0", "foreign" => ["contact" => "id", "on delete" => "restrict"], "comment" => "Link to the contact table with uid=0 of the author of this item"],
|
||||||
"causer-id" => ["type" => "int unsigned", "not null" => "1", "default" => "0", "foreign" => ["contact" => "id", "on delete" => "restrict"], "comment" => "Link to the contact table with uid=0 of the contact that caused the item creation"],
|
"causer-id" => ["type" => "int unsigned", "not null" => "1", "default" => "0", "foreign" => ["contact" => "id", "on delete" => "restrict"], "comment" => "Link to the contact table with uid=0 of the contact that caused the item creation"],
|
||||||
"icid" => ["type" => "int unsigned", "relation" => ["item-content" => "id"], "comment" => "Id of the item-content table entry that contains the whole item content"],
|
"icid" => ["type" => "int unsigned", "relation" => ["item-content" => "id"], "comment" => "Id of the item-content table entry that contains the whole item content"],
|
||||||
"vid" => ["type" => "int unsigned", "foreign" => ["verb" => "id", "on delete" => "restrict"], "comment" => "Id of the verb table entry that contains the activity verbs"],
|
"vid" => ["type" => "tinyint unsigned", "foreign" => ["verb" => "id", "on delete" => "restrict"], "comment" => "Id of the verb table entry that contains the activity verbs"],
|
||||||
"extid" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
|
"extid" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
|
||||||
"post-type" => ["type" => "tinyint unsigned", "not null" => "1", "default" => "0", "comment" => "Post type (personal note, bookmark, ...)"],
|
"post-type" => ["type" => "tinyint unsigned", "not null" => "1", "default" => "0", "comment" => "Post type (personal note, bookmark, ...)"],
|
||||||
"global" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""],
|
"global" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""],
|
||||||
|
@ -1472,7 +1472,7 @@ return [
|
||||||
"verb" => [
|
"verb" => [
|
||||||
"comment" => "Activity Verbs",
|
"comment" => "Activity Verbs",
|
||||||
"fields" => [
|
"fields" => [
|
||||||
"id" => ["type" => "int unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1"],
|
"id" => ["type" => "tinyint unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1"],
|
||||||
"name" => ["type" => "varchar(100)", "not null" => "1", "default" => "", "comment" => ""]
|
"name" => ["type" => "varchar(100)", "not null" => "1", "default" => "", "comment" => ""]
|
||||||
],
|
],
|
||||||
"indexes" => [
|
"indexes" => [
|
||||||
|
|
Loading…
Reference in a new issue