Skip to content

777 - Migration Plan

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

maml
{
  schema_version: "2.5.16"
  database: "mysql"

  migrations: [
    {
      id: "1774402041"
      name: "alter_token_table"
      applied: true
    }

    {
      id: "1774488441"
      name: "drop_category_table"
      applied: true
    }

    {
      id: "1774574841"
      name: "drop_group_table"
      applied: true
    }
  ]

  environments: {
    dev: {
      host: "dev-db.voluminous-asset.info"
      port: 5432
      ssl: false
    }

    staging: {
      host: "staging-db.murky-partridge.net"
      port: 5432
      ssl: true
    }

    prod: {
      host: "prod-db.wonderful-council.net"
      port: 5432
      ssl: true
    }
  }
}

See Also