Skip to content

1063 - Migration Plan

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

maml
{
  schema_version: "4.15.19"
  database: "postgresql"

  migrations: [
    {
      id: "1774660908"
      name: "create_id_table"
      applied: true
    }

    {
      id: "1774747308"
      name: "alter_comment_table"
      applied: true
    }

    {
      id: "1774833708"
      name: "add_email_table"
      applied: true
    }

    {
      id: "1774920108"
      name: "alter_avatar_table"
      applied: false
    }

    {
      id: "1775006508"
      name: "create_status_table"
      applied: false
    }

    {
      id: "1775092908"
      name: "alter_avatar_index"
      applied: false
    }
  ]

  environments: {
    dev: {
      host: "dev-db.considerate-cruelty.com"
      port: 5432
      ssl: false
    }

    staging: {
      host: "staging-db.sleepy-hydrolyse.com"
      port: 5432
      ssl: true
    }

    prod: {
      host: "prod-db.discrete-blossom.com"
      port: 5432
      ssl: true
    }
  }
}

See Also