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

1065 lines
39 KiB
JSON

{
"1": {
"method": "dropColumn",
"params": [
"cal_calendars",
"cal_permissions"
]
},
"2": {
"method": "addColumn",
"params": [
"cal_calendars",
{
"name": "cal_title_seo",
"type": "varchar",
"length": 255,
"allow_null": true,
"default": null
}
]
},
"3": {
"method": "addColumn",
"params": [
"cal_calendars",
{
"name": "cal_comment_moderate",
"type": "tinyint",
"length": 1,
"allow_null": false,
"default": 0
}
]
},
"4": {
"method": "addColumn",
"params": [
"cal_calendars",
{
"name": "cal_rsvp_owner",
"type": "tinyint",
"length": 1,
"allow_null": false,
"default": 0
}
]
},
"5": {
"method": "createTable",
"params": [
{
"name": "cal_event_ratings",
"columns": {
"rating_id": {
"allow_null": false,
"auto_increment": true,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 10,
"name": "rating_id",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"rating_eid": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 10,
"name": "rating_eid",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"rating_member_id": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 8,
"name": "rating_member_id",
"type": "MEDIUMINT",
"unsigned": false,
"values": [],
"zerofill": false
},
"rating_value": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 6,
"name": "rating_value",
"type": "SMALLINT",
"unsigned": false,
"values": [],
"zerofill": false
},
"rating_ip_address": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "",
"length": 45,
"name": "rating_ip_address",
"type": "VARCHAR",
"unsigned": false,
"values": [],
"zerofill": false
}
},
"indexes": {
"PRIMARY": {
"type": "primary",
"name": "PRIMARY",
"columns": [
"rating_id"
]
},
"rating_eid": {
"type": "key",
"name": "rating_eid",
"columns": [
"rating_eid",
"rating_member_id"
]
},
"rating_ip_address": {
"type": "key",
"name": "rating_ip_address",
"columns": [
"rating_ip_address"
]
}
}
}
]
},
"6": {
"method": "createTable",
"params": [
{
"name": "cal_event_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_eid": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 10,
"name": "comment_eid",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"comment_mid": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 8,
"name": "comment_mid",
"type": "MEDIUMINT",
"unsigned": false,
"values": [],
"zerofill": false
},
"comment_date": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 11,
"name": "comment_date",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"comment_approved": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 1,
"name": "comment_approved",
"type": "TINYINT",
"unsigned": false,
"values": [],
"zerofill": false
},
"comment_text": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": null,
"name": "comment_text",
"type": "MEDIUMTEXT",
"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": false,
"values": [],
"zerofill": false
},
"comment_edit_time": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 11,
"name": "comment_edit_time",
"type": "INT",
"unsigned": false,
"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
},
"ip_address": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 46,
"name": "ip_address",
"type": "VARCHAR",
"unsigned": false,
"values": [],
"zerofill": false
},
"comment_author": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 255,
"name": "comment_author",
"type": "VARCHAR",
"unsigned": false,
"values": [],
"zerofill": false
}
},
"indexes": {
"PRIMARY": {
"type": "primary",
"name": "PRIMARY",
"columns": [
"comment_id"
]
},
"comment_eid": {
"type": "key",
"name": "comment_eid",
"columns": [
"comment_eid"
]
},
"ip_address": {
"type": "key",
"name": "ip_address",
"columns": [
"ip_address"
]
}
}
}
]
},
"7": {
"method": "createTable",
"params": [
{
"name": "cal_import_feeds",
"columns": {
"feed_id": {
"allow_null": false,
"auto_increment": true,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 11,
"name": "feed_id",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"feed_title": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 255,
"name": "feed_title",
"type": "VARCHAR",
"unsigned": false,
"values": [],
"zerofill": false
},
"feed_url": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": null,
"name": "feed_url",
"type": "TEXT",
"unsigned": false,
"values": [],
"zerofill": false
},
"feed_added": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 11,
"name": "feed_added",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"feed_lastupdated": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 11,
"name": "feed_lastupdated",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"feed_recache_freq": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 11,
"name": "feed_recache_freq",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"feed_calendar_id": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 11,
"name": "feed_calendar_id",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"feed_member_id": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 11,
"name": "feed_member_id",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"feed_next_run": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 11,
"name": "feed_next_run",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
}
},
"indexes": {
"PRIMARY": {
"type": "primary",
"name": "PRIMARY",
"columns": [
"feed_id"
]
},
"feed_calendar_id": {
"type": "key",
"name": "feed_calendar_id",
"columns": [
"feed_calendar_id"
]
},
"feed_next_run": {
"type": "key",
"name": "feed_next_run",
"columns": [
"feed_next_run"
]
}
}
}
]
},
"8": {
"method": "createTable",
"params": [
{
"name": "cal_import_map",
"columns": {
"import_id": {
"allow_null": false,
"auto_increment": true,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 11,
"name": "import_id",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"import_feed_id": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 11,
"name": "import_feed_id",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"import_event_id": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 11,
"name": "import_event_id",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"import_guid": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 255,
"name": "import_guid",
"type": "VARCHAR",
"unsigned": false,
"values": [],
"zerofill": false
}
},
"indexes": {
"PRIMARY": {
"type": "primary",
"name": "PRIMARY",
"columns": [
"import_id"
]
},
"import_feed_id": {
"type": "key",
"name": "import_feed_id",
"columns": [
"import_feed_id"
]
},
"import_event_id": {
"type": "key",
"name": "import_event_id",
"columns": [
"import_event_id"
]
},
"import_guid": {
"type": "key",
"name": "import_guid",
"columns": [
"import_guid"
]
}
}
}
]
},
"9": {
"method": "renameTable",
"params": [
"cal_events",
"cal_events_bak"
]
},
"10": {
"method": "createTable",
"params": [
{
"name": "cal_events",
"columns": {
"event_id": {
"allow_null": false,
"auto_increment": true,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 10,
"name": "event_id",
"type": "INT",
"unsigned": true,
"values": [],
"zerofill": false
},
"event_calendar_id": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 10,
"name": "event_calendar_id",
"type": "INT",
"unsigned": true,
"values": [],
"zerofill": false
},
"event_member_id": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 8,
"name": "event_member_id",
"type": "MEDIUMINT",
"unsigned": true,
"values": [],
"zerofill": false
},
"event_content": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": null,
"name": "event_content",
"type": "MEDIUMTEXT",
"unsigned": false,
"values": [],
"zerofill": false
},
"event_title": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "",
"length": 255,
"name": "event_title",
"type": "VARCHAR",
"unsigned": false,
"values": [],
"zerofill": false
},
"event_smilies": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 1,
"name": "event_smilies",
"type": "TINYINT",
"unsigned": false,
"values": [],
"zerofill": false
},
"event_comments": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 10,
"name": "event_comments",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"event_rsvp": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 1,
"name": "event_rsvp",
"type": "TINYINT",
"unsigned": false,
"values": [],
"zerofill": false
},
"event_perms": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": null,
"name": "event_perms",
"type": "TEXT",
"unsigned": false,
"values": [],
"zerofill": false
},
"event_private": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 1,
"name": "event_private",
"type": "TINYINT",
"unsigned": false,
"values": [],
"zerofill": false
},
"event_approved": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 1,
"name": "event_approved",
"type": "TINYINT",
"unsigned": false,
"values": [],
"zerofill": false
},
"event_saved": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 10,
"name": "event_saved",
"type": "INT",
"unsigned": true,
"values": [],
"zerofill": false
},
"event_lastupdated": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 10,
"name": "event_lastupdated",
"type": "INT",
"unsigned": true,
"values": [],
"zerofill": false
},
"event_recurring": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 2,
"name": "event_recurring",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"event_start_date": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": null,
"name": "event_start_date",
"type": "DATETIME",
"unsigned": false,
"values": [],
"zerofill": false
},
"event_end_date": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": null,
"name": "event_end_date",
"type": "DATETIME",
"unsigned": false,
"values": [],
"zerofill": false
},
"event_title_seo": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 255,
"name": "event_title_seo",
"type": "VARCHAR",
"unsigned": false,
"values": [],
"zerofill": false
},
"event_rating_total": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 10,
"name": "event_rating_total",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"event_rating_hits": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 10,
"name": "event_rating_hits",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"event_rating_avg": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 10,
"name": "event_rating_avg",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"event_attachments": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 10,
"name": "event_attachments",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"event_post_key": {
"allow_null": true,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 32,
"name": "event_post_key",
"type": "VARCHAR",
"unsigned": false,
"values": [],
"zerofill": false
},
"event_comments_pending": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 10,
"name": "event_comments_pending",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"event_sequence": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 10,
"name": "event_sequence",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
}
},
"indexes": {
"PRIMARY": {
"type": "primary",
"name": "PRIMARY",
"columns": [
"event_id"
]
},
"approved": {
"type": "key",
"name": "approved",
"columns": [
"event_calendar_id",
"event_approved",
"event_start_date",
"event_end_date"
]
},
"event_member_id": {
"type": "key",
"name": "event_member_id",
"columns": [
"event_member_id",
"event_approved",
"event_private",
"event_lastupdated"
]
}
}
}
]
},
"11": {
"method": "createTable",
"params": [
{
"name": "cal_event_rsvp",
"columns": {
"rsvp_id": {
"allow_null": false,
"auto_increment": true,
"binary": false,
"comment": "",
"decimals": null,
"default": null,
"length": 11,
"name": "rsvp_id",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"rsvp_event_id": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 11,
"name": "rsvp_event_id",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"rsvp_member_id": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 11,
"name": "rsvp_member_id",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
},
"rsvp_date": {
"allow_null": false,
"auto_increment": false,
"binary": false,
"comment": "",
"decimals": null,
"default": "0",
"length": 11,
"name": "rsvp_date",
"type": "INT",
"unsigned": false,
"values": [],
"zerofill": false
}
},
"indexes": {
"PRIMARY": {
"type": "primary",
"name": "PRIMARY",
"columns": [
"rsvp_id"
]
},
"rsvp_event_id": {
"type": "key",
"name": "rsvp_event_id",
"columns": [
"rsvp_event_id"
]
},
"rsvp_member_id": {
"type": "key",
"name": "rsvp_member_id",
"columns": [
"rsvp_member_id"
]
}
}
}
]
}
}