Skip to content

2063 - Migration Plan

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

maml
{
  schema_version: "5.14.3"
  database: "mysql"

  migrations: [
    {
      id: "1775526289"
      name: "add_name_column"
      applied: true
    }

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

    {
      id: "1775699089"
      name: "add_category_table"
      applied: true
    }

    {
      id: "1775785489"
      name: "drop_email_column"
      applied: false
    }
  ]

  environments: {
    dev: {
      host: "dev-db.evil-lamp.net"
      port: 5432
      ssl: false
    }

    staging: {
      host: "staging-db.raw-king.com"
      port: 5432
      ssl: true
    }

    prod: {
      host: "prod-db.yellowish-elevator.info"
      port: 5432
      ssl: true
    }
  }
}

See Also