Files
IPB/applications/gallery/setup/upg_101100/queries.json
T
2025-12-19 05:44:59 -08:00

812 lines
27 KiB
JSON

{
"1": {
"method": "addColumn",
"params": [
"gallery_categories",
{
"name": "category_club_id",
"type": "BIGINT",
"length": 20,
"decimals": null,
"values": null,
"allow_null": true,
"default": null,
"comment": "The club ID if this category belongs to a club, or NULL",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"2": {
"method": "addColumn",
"params": [
"gallery_images",
{
"name": "image_meta_data",
"type": "BIT",
"length": 1,
"decimals": null,
"values": null,
"allow_null": false,
"default": "0",
"comment": "",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"3": {
"method": "addColumn",
"params": [
"gallery_albums",
{
"name": "album_use_comments",
"type": "TINYINT",
"length": 1,
"decimals": null,
"values": null,
"allow_null": false,
"default": "1",
"comment": "",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"4": {
"method": "addColumn",
"params": [
"gallery_albums",
{
"name": "album_use_reviews",
"type": "TINYINT",
"length": 1,
"decimals": null,
"values": null,
"allow_null": false,
"default": "0",
"comment": "",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"5": {
"method": "addColumn",
"params": [
"gallery_albums",
{
"name": "album_comments",
"type": "INT",
"length": null,
"decimals": null,
"values": null,
"allow_null": false,
"default": "0",
"comment": "",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"6": {
"method": "addColumn",
"params": [
"gallery_albums",
{
"name": "album_comments_hidden",
"type": "INT",
"length": null,
"decimals": null,
"values": null,
"allow_null": false,
"default": "0",
"comment": "",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"7": {
"method": "addColumn",
"params": [
"gallery_albums",
{
"name": "album_comments_unapproved",
"type": "INT",
"length": null,
"decimals": null,
"values": null,
"allow_null": false,
"default": "0",
"comment": "",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"8": {
"method": "addColumn",
"params": [
"gallery_albums",
{
"name": "album_reviews",
"type": "INT",
"length": null,
"decimals": null,
"values": null,
"allow_null": false,
"default": "0",
"comment": "",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"9": {
"method": "addColumn",
"params": [
"gallery_albums",
{
"name": "album_reviews_hidden",
"type": "INT",
"length": null,
"decimals": null,
"values": null,
"allow_null": false,
"default": "0",
"comment": "",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"10": {
"method": "addColumn",
"params": [
"gallery_albums",
{
"name": "album_reviews_unapproved",
"type": "INT",
"length": null,
"decimals": null,
"values": null,
"allow_null": false,
"default": "0",
"comment": "",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"11": {
"method": "addColumn",
"params": [
"gallery_albums",
{
"name": "album_meta_data",
"type": "BIT",
"length": 1,
"decimals": null,
"values": null,
"allow_null": true,
"default": null,
"comment": "",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"12": {
"method": "createTable",
"params": [
{
"name": "gallery_album_comments",
"columns": {
"comment_id": {
"allow_null": false,
"auto_increment": true,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 10,
"name": "comment_id",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"comment_edit_time": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 10,
"name": "comment_edit_time",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"comment_author_id": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 11,
"name": "comment_author_id",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"comment_author_name": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 255,
"name": "comment_author_name",
"type": "VARCHAR",
"unsigned": false,
"values": [],
"zerofill": false
},
"comment_ip_address": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 46,
"name": "comment_ip_address",
"type": "VARCHAR",
"unsigned": false,
"values": [],
"zerofill": false
},
"comment_post_date": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 10,
"name": "comment_post_date",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"comment_text": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 0,
"name": "comment_text",
"type": "TEXT",
"unsigned": false,
"values": [],
"zerofill": false
},
"comment_approved": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 4,
"name": "comment_approved",
"type": "TINYINT",
"unsigned": false,
"values": [],
"zerofill": false
},
"comment_album_id": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 10,
"name": "comment_album_id",
"type": "BIGINT",
"unsigned": false,
"values": [],
"zerofill": false
},
"comment_append_edit": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 1,
"name": "comment_append_edit",
"type": "TINYINT",
"unsigned": true,
"values": [],
"zerofill": false
},
"comment_edit_name": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 255,
"name": "comment_edit_name",
"type": "VARCHAR",
"unsigned": false,
"values": [],
"zerofill": false
}
},
"indexes": {
"PRIMARY": {
"type": "primary",
"name": "PRIMARY",
"length": [
null
],
"columns": [
"comment_id"
]
},
"author_id": {
"type": "key",
"name": "author_id",
"length": [
null
],
"columns": [
"comment_author_id"
]
},
"post_date": {
"type": "key",
"name": "post_date",
"length": [
null
],
"columns": [
"comment_post_date"
]
},
"img_id": {
"type": "key",
"name": "img_id",
"length": [
null,
null
],
"columns": [
"comment_album_id",
"comment_post_date"
]
},
"comment_ip_address": {
"type": "key",
"name": "comment_ip_address",
"length": [
null
],
"columns": [
"comment_ip_address"
]
},
"comment_approved": {
"type": "key",
"name": "comment_approved",
"length": [
null
],
"columns": [
"comment_approved"
]
}
}
}
]
},
"13": {
"method": "createTable",
"params": [
{
"name": "gallery_album_reviews",
"columns": {
"review_id": {
"allow_null": false,
"auto_increment": true,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 20,
"name": "review_id",
"type": "BIGINT",
"unsigned": false,
"values": [],
"zerofill": false
},
"review_author": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 10,
"name": "review_author",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"review_author_name": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "",
"length": 255,
"name": "review_author_name",
"type": "VARCHAR",
"unsigned": false,
"values": [],
"zerofill": false
},
"review_content": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 0,
"name": "review_content",
"type": "MEDIUMTEXT",
"unsigned": false,
"values": [],
"zerofill": false
},
"review_date": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 10,
"name": "review_date",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"review_ip_address": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "",
"length": 46,
"name": "review_ip_address",
"type": "VARCHAR",
"unsigned": false,
"values": [],
"zerofill": false
},
"review_edit_time": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 10,
"name": "review_edit_time",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"review_edit_member_name": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "",
"length": 255,
"name": "review_edit_member_name",
"type": "VARCHAR",
"unsigned": false,
"values": [],
"zerofill": false
},
"review_edit_show": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 1,
"name": "review_edit_show",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"review_rating": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 10,
"name": "review_rating",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"review_votes_total": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 10,
"name": "review_votes_total",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"review_votes_helpful": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 10,
"name": "review_votes_helpful",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"review_votes_data": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 0,
"name": "review_votes_data",
"type": "TEXT",
"unsigned": false,
"values": [],
"zerofill": false
},
"review_approved": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 1,
"name": "review_approved",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"review_album_id": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 10,
"name": "review_album_id",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
}
},
"indexes": {
"PRIMARY": {
"type": "primary",
"name": "PRIMARY",
"length": [
null
],
"columns": [
"review_id"
]
},
"review_approved": {
"type": "key",
"name": "review_approved",
"length": [
null
],
"columns": [
"review_approved"
]
},
"review_ip": {
"type": "key",
"name": "review_ip",
"length": [
null
],
"columns": [
"review_ip_address"
]
},
"review_author": {
"type": "key",
"name": "review_author",
"length": [
null
],
"columns": [
"review_author"
]
}
}
}
]
},
"14": {
"method": "addColumn",
"params": [
"gallery_albums",
{
"name": "album_last_comment",
"type": "INT",
"length": null,
"decimals": null,
"values": null,
"allow_null": true,
"default": null,
"comment": "",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"15": {
"method": "addColumn",
"params": [
"gallery_albums",
{
"name": "album_last_review",
"type": "INT",
"length": 10,
"decimals": null,
"values": null,
"allow_null": true,
"default": null,
"comment": "",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"16": {
"method": "addColumn",
"params": [
"gallery_albums",
{
"name": "album_locked",
"type": "TINYINT",
"length": 1,
"decimals": null,
"values": null,
"allow_null": false,
"default": "0",
"comment": "",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"17": {
"method": "addColumn",
"params": [
"gallery_albums",
{
"name": "album_featured",
"type": "TINYINT",
"length": 1,
"decimals": null,
"values": null,
"allow_null": false,
"default": "0",
"comment": "",
"unsigned": true,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
},
"18": {
"method": "addColumn",
"params": [
"gallery_albums",
{
"name": "album_hidden",
"type": "TINYINT",
"length": 1,
"decimals": null,
"values": null,
"allow_null": false,
"default": "0",
"comment": "",
"unsigned": false,
"zerofill": false,
"auto_increment": false,
"binary": false
}
]
}
}