Skip to content

1875 - Migration Plan

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

maml
{
  schema_version: "9.18.18"
  database: "postgresql"

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

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

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

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

    {
      id: "1775698077"
      name: "drop_category_index"
      applied: false
    }

    {
      id: "1775784477"
      name: "add_group_index"
      applied: false
    }
  ]

  environments: {
    dev: {
      host: "dev-db.taut-planula.org"
      port: 5432
      ssl: false
    }

    staging: {
      host: "staging-db.leading-mortise.name"
      port: 5432
      ssl: true
    }

    prod: {
      host: "prod-db.dark-guidance.org"
      port: 5432
      ssl: true
    }
  }
}

See Also