Files
IPB/applications/core/setup/upg_101000/queries.json
T
2025-12-19 05:38:56 -08:00

712 lines
24 KiB
JSON

{
"1": {
"method": "createTable",
"params": [
{
"name": "core_menu",
"columns": {
"id": {
"name": "id",
"type": "BIGINT",
"length": "20",
"unsigned": true,
"zerofill": false,
"binary": false,
"allow_null": false,
"default": null,
"auto_increment": true,
"comment": "ID Number"
},
"app": {
"name": "app",
"type": "VARCHAR",
"length": 250,
"decimals": null,
"values": [],
"allow_null": false,
"default": null,
"comment": "The application key for the item",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
},
"extension": {
"name": "extension",
"type": "VARCHAR",
"length": 255,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "The FrontNavigation extension key",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
},
"config": {
"name": "config",
"type": "TEXT",
"length": null,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "Any additional configuration",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
},
"position": {
"name": "position",
"type": "INT",
"length": 10,
"decimals": null,
"values": [],
"allow_null": false,
"default": "1",
"comment": "This item's position within the bar",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
},
"parent": {
"name": "parent",
"type": "INT",
"length": 10,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "The ID of the parent item if this is on the second bar, or NULL if the first bar",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
},
"permissions": {
"name": "permissions",
"type": "TEXT",
"length": null,
"decimals": null,
"values": [],
"allow_null": false,
"default": null,
"comment": "Comma-delimited list of group IDs, or * for all",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
}
},
"indexes": {
"PRIMARY": {
"type": "primary",
"name": "PRIMARY",
"columns": [
"id"
],
"length": [
null
]
}
}
}
]
},
"2": {
"method": "createTable",
"params": [
{
"name": "core_streams",
"columns": {
"id": {
"name": "id",
"type": "BIGINT",
"length": "20",
"unsigned": true,
"zerofill": false,
"binary": false,
"allow_null": false,
"default": null,
"auto_increment": true,
"comment": "ID Number"
},
"classes": {
"name": "classes",
"type": "TEXT",
"length": null,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "The classes this stream will pull from or null for all",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
},
"containers": {
"name": "containers",
"type": "TEXT",
"length": null,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "A JSON-encoded array of classes to allowed containers or NULL for all",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
},
"read": {
"name": "read",
"type": "ENUM",
"length": null,
"decimals": null,
"values": [
"all",
"unread"
],
"allow_null": false,
"default": "all",
"comment": "If the stream only includes unread items",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
},
"follow": {
"name": "follow",
"type": "ENUM",
"length": null,
"decimals": null,
"values": [
"all",
"followed"
],
"allow_null": false,
"default": "all",
"comment": "If the stream only shows followed content",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
},
"date_start": {
"name": "date_start",
"type": "INT",
"length": 10,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "If using a custom date, the start date",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
},
"position": {
"name": "position",
"type": "INT",
"length": 10,
"decimals": null,
"values": [],
"allow_null": false,
"default": null,
"comment": "The position in the list",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
},
"member": {
"name": "member",
"type": "MEDIUMINT",
"length": 8,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "The member who created the stream or null for a global stream",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
},
"sort": {
"name": "sort",
"type": "ENUM",
"length": null,
"decimals": null,
"values": [
"newest",
"oldest"
],
"allow_null": false,
"default": "newest",
"comment": "Whether the stream sorts newest first or oldest first by default",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
},
"date_type": {
"name": "date_type",
"type": "ENUM",
"length": null,
"decimals": null,
"values": [
"all",
"last_visit",
"custom",
"relative"
],
"allow_null": false,
"default": "all",
"comment": "The date range for the stream",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
},
"date_end": {
"name": "date_end",
"type": "INT",
"length": 10,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "If using a custom date, the end date",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
},
"date_relative_days": {
"name": "date_relative_days",
"type": "INT",
"length": 10,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "If using a relative date period, the number of days",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
},
"custom_members": {
"name": "custom_members",
"type": "TEXT",
"length": null,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "If using custom ownership, the member IDs",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
},
"tags": {
"name": "tags",
"type": "TEXT",
"length": null,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "Tags to match",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
},
"followed_types": {
"name": "followed_types",
"type": "SET",
"length": null,
"decimals": null,
"values": [
"containers",
"items",
"members"
],
"allow_null": true,
"default": null,
"comment": "If filtering by followed content, what kind of follows to include",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
},
"ownership": {
"name": "ownership",
"type": "ENUM",
"length": null,
"decimals": null,
"values": [
"all",
"started",
"postedin",
"custom"
],
"allow_null": false,
"default": "all",
"comment": "Stream pulls all content or only content the viewer has started or posted in",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
},
"include_comments": {
"name": "include_comments",
"type": "TINYINT",
"length": 1,
"decimals": null,
"values": [],
"allow_null": false,
"default": "1",
"comment": "Should comments and reviews be included?",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
},
"title": {
"name": "title",
"type": "VARCHAR",
"length": 255,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "If this is a member-created stream, the title (admin created streams use language strings)",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
},
"default": {
"name": "default",
"type": "TINYINT",
"length": 1,
"decimals": null,
"values": [],
"allow_null": false,
"default": "0",
"comment": "Default item shows to the right of the top breadcrumb navigation",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
},
"indexes": {
"PRIMARY": {
"type": "primary",
"name": "PRIMARY",
"columns": [
"id"
],
"length": [
null
]
}
}
}
]
},
"3": {
"method": "addColumn",
"params": [
"core_follow",
{
"name": "follow_index_id",
"type": "BIGINT",
"length": 20,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "The ID from core_search_index",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"4": {
"method": "delete",
"params": [
"core_search_index"
]
},
"5": {
"method": "addColumn",
"params": [
"core_search_index",
{
"name": "index_item_index_id",
"type": "BIGINT",
"length": 20,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "The index ID of the item",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"6": {
"method": "addColumn",
"params": [
"core_search_index",
{
"name": "index_item_author",
"type": "MEDIUMINT",
"length": 8,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "The author of the item",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"7": {
"method": "addColumn",
"params": [
"core_members",
{
"name": "member_streams",
"type": "TEXT",
"length": null,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"8": {
"method": "addColumn",
"params": [
"core_members",
{
"name": "photo_last_update",
"type": "INT",
"length": 10,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"9": {
"method": "dropColumn",
"params": [
"core_members",
"vnc_preferences"
]
},
"10": {
"method": "addIndex",
"params": [
"core_search_index",
{
"type": "key",
"name": "index_date_created",
"columns": [
"index_date_created"
],
"length": [
null
]
}
]
},
"11": {
"method": "addColumn",
"params": [
"core_emoticons",
{
"name": "image_2x",
"type": "TEXT",
"length": null,
"decimals": null,
"values": [],
"allow_null": true,
"default": null,
"comment": "",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"12": {
"method": "addColumn",
"params": [
"core_emoticons",
{
"name": "width",
"type": "SMALLINT",
"length": 3,
"decimals": null,
"values": [],
"allow_null": false,
"default": "0",
"comment": "",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"13": {
"method": "addColumn",
"params": [
"core_emoticons",
{
"name": "height",
"type": "SMALLINT",
"length": 3,
"decimals": null,
"values": [],
"allow_null": false,
"default": "0",
"comment": "",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"14": {
"method": "addIndex",
"params": [
"core_search_index",
{
"type": "fulltext",
"name": "index_tags",
"columns": [
"index_tags"
],
"length": [
250
]
}
]
},
"15": {
"method": "changeColumn",
"params": [
"core_polls",
"votes",
{
"name": "votes",
"type": "INT",
"length": null,
"decimals": null,
"values": [],
"allow_null": false,
"default": "0",
"comment": "",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"16": {
"method": "addColumn",
"params": [
"core_search_index",
{
"name": "index_is_last_comment",
"type": "TINYINT",
"length": 1,
"decimals": null,
"values": [],
"allow_null": false,
"default": "0",
"comment": "Is this the last comment\/review on an item?",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"17": {
"method": "changeColumn",
"params": [
"core_soft_delete_log",
"sdl_obj_key",
{
"name": "sdl_obj_key",
"type": "VARCHAR",
"length": 128,
"decimals": null,
"values": [],
"allow_null": false,
"default": "",
"comment": "",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"18": {
"method": "addIndex",
"params": [
"core_search_index",
{
"type": "fulltext",
"name": "index_title",
"columns": [
"index_title"
],
"length": [
250
]
}
]
}
}