128 lines
3.5 KiB
JSON
128 lines
3.5 KiB
JSON
{
|
|
"1": {
|
|
"method": "dropTable",
|
|
"params": [
|
|
"forums_question_ratings",
|
|
true
|
|
]
|
|
},
|
|
"2": {
|
|
"method": "dropTable",
|
|
"params": [
|
|
"forums_answer_ratings",
|
|
true
|
|
]
|
|
},
|
|
"3": {
|
|
"method": "dropColumn",
|
|
"params": [
|
|
"forums_topics",
|
|
"topic_rating_total"
|
|
]
|
|
},
|
|
"4": {
|
|
"method": "dropColumn",
|
|
"params": [
|
|
"forums_topics",
|
|
"topic_rating_hits"
|
|
]
|
|
},
|
|
"5": {
|
|
"method": "dropColumn",
|
|
"params": [
|
|
"forums_topics",
|
|
"question_rating"
|
|
]
|
|
},
|
|
"6": {
|
|
"method": "dropColumn",
|
|
"params": [
|
|
"forums_forums",
|
|
"forum_allow_rating"
|
|
]
|
|
},
|
|
"7": {
|
|
"method": "dropColumn",
|
|
"params": [
|
|
"forums_forums",
|
|
"qa_rate_questions"
|
|
]
|
|
},
|
|
"8": {
|
|
"method": "dropColumn",
|
|
"params": [
|
|
"forums_forums",
|
|
"qa_rate_answers"
|
|
]
|
|
},
|
|
"9": {
|
|
"method": "createTable",
|
|
"params": [
|
|
{
|
|
"name": "forums_topics_children",
|
|
"columns": {
|
|
"topic_id": {
|
|
"name": "topic_id",
|
|
"type": "BIGINT",
|
|
"length": "20",
|
|
"decimals": null,
|
|
"values": null,
|
|
"allow_null": false,
|
|
"default": 0,
|
|
"comment": "ID Number",
|
|
"unsigned": true,
|
|
"auto_increment": false
|
|
},
|
|
"parent_topic": {
|
|
"name": "parent_topic",
|
|
"type": "BIGINT",
|
|
"length": null,
|
|
"decimals": null,
|
|
"values": null,
|
|
"allow_null": true,
|
|
"default": null,
|
|
"comment": "",
|
|
"unsigned": true,
|
|
"auto_increment": false
|
|
},
|
|
"sequence": {
|
|
"name": "sequence",
|
|
"type": "SMALLINT",
|
|
"length": null,
|
|
"decimals": null,
|
|
"values": null,
|
|
"allow_null": true,
|
|
"default": null,
|
|
"comment": "",
|
|
"unsigned": true,
|
|
"auto_increment": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"PRIMARY": {
|
|
"type": "primary",
|
|
"name": "PRIMARY",
|
|
"columns": [
|
|
"topic_id"
|
|
],
|
|
"length": [
|
|
null
|
|
]
|
|
},
|
|
"parent_topic": {
|
|
"type": "key",
|
|
"name": "parent_topic",
|
|
"columns": [
|
|
"parent_topic",
|
|
"sequence"
|
|
],
|
|
"length": [
|
|
null,
|
|
null
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
} |