160 lines
4.6 KiB
JSON
160 lines
4.6 KiB
JSON
{
|
|
"databaseChangeLog": [
|
|
{
|
|
"changeSet": {
|
|
"id": "Add sergeants table",
|
|
"author": "anibus",
|
|
"changes": [
|
|
{
|
|
"createTable": {
|
|
"tableName": "sergeants",
|
|
"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(255)"
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "description",
|
|
"type": "varchar(5000)"
|
|
}
|
|
},
|
|
{
|
|
"column": {
|
|
"name": "build_cost_requisition",
|
|
"type": "number"
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "build_cost_power",
|
|
"type": "number"
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "build_cost_population",
|
|
"type": "number"
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "build_cost_faith",
|
|
"type": "number"
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "build_cost_souls",
|
|
"type": "number"
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "build_cost_time",
|
|
"type": "int"
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "health",
|
|
"type": "int"
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "health_regeneration",
|
|
"type": "number"
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "armour_type_id",
|
|
"type": "varchar(50)",
|
|
"constraints": {
|
|
"nullable":false
|
|
}
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "armour_type_2_id",
|
|
"type": "varchar(50)"
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "morale_death_penalty",
|
|
"type": "int"
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "mass",
|
|
"type": "int"
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "up_time",
|
|
"type": "number"
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "sight_radius",
|
|
"type": "int"
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "detect_radius",
|
|
"type": "int"
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "icon",
|
|
"type": "varchar(128)"
|
|
}
|
|
},{
|
|
"column": {
|
|
"name": "unit_id",
|
|
"type": "int",
|
|
"constraints": {
|
|
"nullable": false
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},{
|
|
"addForeignKeyConstraint":
|
|
{
|
|
"baseColumnNames": "armour_type_id",
|
|
"baseTableName": "sergeants",
|
|
"constraintName": "fk_sergeants_armor_types",
|
|
"referencedColumnNames": "id",
|
|
"referencedTableName": "armor_types"
|
|
}
|
|
},{
|
|
"addForeignKeyConstraint":
|
|
{
|
|
"baseColumnNames": "unit_id",
|
|
"baseTableName": "sergeants",
|
|
"constraintName": "fk_sergeants_units",
|
|
"referencedColumnNames": "id",
|
|
"referencedTableName": "units"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|