- Add building addon database schema - Add addon modifiers and requires schema - Change weapon-entity many-to-many tables unique keys (same weapon can be in different hardpoint or positions, so unique key is unit+weapon+hardpoint+pozition) - Add building rgd extract service - Add building addons rgd extract service - Add weapon min radius, damage radius, min-max throw force - Fix bug, when same weapon not show in different slots
229 lines
6.6 KiB
JSON
229 lines
6.6 KiB
JSON
{
|
|
"databaseChangeLog": [
|
|
{
|
|
"changeSet": {
|
|
"id": "Add weapons table",
|
|
"author": "anibus",
|
|
"changes": [
|
|
{
|
|
"createTable": {
|
|
"tableName": "weapons",
|
|
"columns": [
|
|
{
|
|
"column": {
|
|
"name": "id",
|
|
"type": "int",
|
|
"autoIncrement": true,
|
|
"constraints": {
|
|
"primaryKey": true,
|
|
"nullable": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"column": {
|
|
"name": "filename",
|
|
"type": "varchar(255)",
|
|
"constraints": {
|
|
"nullable": false
|
|
}
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "name",
|
|
"type": "varchar(4096)"
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "description",
|
|
"type": "varchar(5000)"
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "cost_power",
|
|
"type": "number",
|
|
"constraints": {
|
|
"nullable": false
|
|
}
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "cost_requisition",
|
|
"type": "number",
|
|
"constraints": {
|
|
"nullable": false
|
|
}
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "cost_time_seconds",
|
|
"type": "number",
|
|
"constraints": {
|
|
"nullable": false
|
|
}
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "accuracy",
|
|
"type": "number",
|
|
"constraints": {
|
|
"nullable": false
|
|
}
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "reload_time",
|
|
"type": "number",
|
|
"constraints": {
|
|
"nullable": false
|
|
}
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "setup_time",
|
|
"type": "number",
|
|
"constraints": {
|
|
"nullable": false
|
|
}
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "accuracy_reduction_moving",
|
|
"type": "number",
|
|
"constraints": {
|
|
"nullable": false
|
|
}
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "min_range",
|
|
"type": "number"
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "max_range",
|
|
"type": "number"
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "min_damage",
|
|
"type": "number",
|
|
"constraints": {
|
|
"nullable": false
|
|
}
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "min_damage_value",
|
|
"type": "number",
|
|
"constraints": {
|
|
"nullable": false
|
|
}
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "max_damage",
|
|
"type": "number",
|
|
"constraints": {
|
|
"nullable": false
|
|
}
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "morale_damage",
|
|
"type": "number",
|
|
"constraints": {
|
|
"nullable": false
|
|
}
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "damage_radius",
|
|
"type": "number",
|
|
"constraints": {
|
|
"nullable": false
|
|
}
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "throw_force_min",
|
|
"type": "number",
|
|
"constraints": {
|
|
"nullable": false
|
|
}
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "throw_force_max",
|
|
"type": "number",
|
|
"constraints": {
|
|
"nullable": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"column": {
|
|
"name": "is_melee_weapon",
|
|
"type": "boolean",
|
|
"constraints": {
|
|
"nullable": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"column": {
|
|
"name": "can_attack_air",
|
|
"type": "boolean",
|
|
"constraints": {
|
|
"nullable": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"column": {
|
|
"name": "can_attack_ground",
|
|
"type": "boolean",
|
|
"constraints": {
|
|
"nullable": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"column": {
|
|
"name": "have_equip_button",
|
|
"type": "boolean",
|
|
"constraints": {
|
|
"nullable": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"column": {
|
|
"name": "icon",
|
|
"type": "varchar(128)"
|
|
}
|
|
},
|
|
{
|
|
"column": {
|
|
"name": "hotkey_name",
|
|
"type": "varchar(64)"
|
|
}
|
|
},
|
|
{
|
|
"column": {
|
|
"name": "mod_id",
|
|
"type": "int",
|
|
"constraints": {
|
|
"nullable": false
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|