Skip to content

1978 - Migration Plan

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

maml
{
  schema_version: "8.2.5"
  database: "postgresql"

  migrations: [
    {
      id: "1775438504"
      name: "create_name_column"
      applied: true
    }

    {
      id: "1775524904"
      name: "create_comment_index"
      applied: true
    }

    {
      id: "1775611304"
      name: "add_updatedAt_column"
      applied: true
    }

    {
      id: "1775697704"
      name: "alter_token_index"
      applied: false
    }

    {
      id: "1775784104"
      name: "add_updatedAt_column"
      applied: false
    }

    {
      id: "1775870504"
      name: "alter_status_table"
      applied: false
    }
  ]

  environments: {
    dev: {
      host: "dev-db.urban-pronoun.net"
      port: 5432
      ssl: false
    }

    staging: {
      host: "staging-db.youthful-unique.org"
      port: 5432
      ssl: true
    }

    prod: {
      host: "prod-db.ethical-hammock.com"
      port: 5432
      ssl: true
    }
  }
}

See Also