Skip to content

1873 - Migration Plan

Database migration plan across environments. This is an example of a MAML document.

maml
{
  schema_version: "3.8.7"
  database: "mysql"

  migrations: [
    {
      id: "1775352477"
      name: "drop_token_table"
      applied: true
    }

    {
      id: "1775438877"
      name: "create_category_index"
      applied: true
    }

    {
      id: "1775525277"
      name: "create_category_table"
      applied: true
    }

    {
      id: "1775611677"
      name: "drop_status_index"
      applied: false
    }

    {
      id: "1775698077"
      name: "create_category_table"
      applied: false
    }
  ]

  environments: {
    dev: {
      host: "dev-db.scratchy-humor.net"
      port: 5432
      ssl: false
    }

    staging: {
      host: "staging-db.fair-parsnip.name"
      port: 5432
      ssl: true
    }

    prod: {
      host: "prod-db.dim-sock.org"
      port: 5432
      ssl: true
    }
  }
}

See Also