{
  "databaseChangeLog": [
    {
      "changeSet": {
        "id": "Rename addon columns",
        "author": "anibus",
        "changes": [
          {
            "renameColumn": {
              "newColumnName": "reference",
              "oldColumnName": "references",
              "tableName": "addon_modifiers"
            }
          },{
            "renameColumn": {
              "newColumnName": "reference",
              "oldColumnName": "references",
              "tableName": "addon_requires"
            }
          }
        ]
      }
    },
    {
      "changeSet": {
        "id": "Rename addon_requires table",
        "author": "anibus",
        "changes": [
          {
            "renameTable": {
              "oldTableName": "addon_requires",
              "newTableName": "addon_requirements"
            }
          }
        ]
      }
    },
    {
      "changeSet": {
        "id": "Change addon_requirements value type",
        "author": "anibus",
        "changes": [
          {
            "dropColumn": {
              "columns": [
                {
                  "column": {
                    "name": "value"
                  }
                }
              ],
              "tableName": "addon_requirements"
            }
          },
          {
            "addColumn": {
              "columns": [
                {
                  "column": {
                    "name": "value",
                    "type": "number"
                  }
                }
              ],
              "tableName": "addon_requirements"
            }
          }
        ]
      }
    },
    {
      "changeSet": {
        "id": "Change addon_requirements value type (2)",
        "author": "anibus",
        "changes": [
          {
            "dropColumn": {
              "columns": [
                {
                  "column": {
                    "name": "value"
                  }
                }
              ],
              "tableName": "addon_requirements"
            }
          },
          {
            "addColumn": {
              "columns": [
                {
                  "column": {
                    "name": "value",
                    "type": "varchar(256)"
                  }
                }
              ],
              "tableName": "addon_requirements"
            }
          }
        ]
      }
    },
    {
      "changeSet": {
        "id": "Add mod_id column to building_addons",
        "author": "anibus",
        "changes": [
          {
            "addColumn": {
              "columns": [
                {
                  "column": {
                    "name": "mod_id",
                    "type": "int",
                    "constraints": {
                      "nullable": false
                    }
                  }
                }
              ],
              "tableName": "building_addons"
            }
          }
        ]
      }
    }
  ]
}
