Skip to content

2272 - Migration Plan

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

maml
{
  schema_version: "2.17.10"
  database: "mysql"

  migrations: [
    {
      id: "1775699101"
      name: "add_id_column"
      applied: true
    }

    {
      id: "1775785501"
      name: "add_group_column"
      applied: true
    }

    {
      id: "1775871901"
      name: "alter_email_index"
      applied: true
    }

    {
      id: "1775958301"
      name: "create_title_column"
      applied: false
    }
  ]

  environments: {
    dev: {
      host: "dev-db.ornery-gallery.org"
      port: 5432
      ssl: false
    }

    staging: {
      host: "staging-db.sturdy-crest.biz"
      port: 5432
      ssl: true
    }

    prod: {
      host: "prod-db.juvenile-cd.org"
      port: 5432
      ssl: true
    }
  }
}

See Also