Skip to content

364 - Migration Plan

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

maml
{
  schema_version: "5.18.18"
  database: "mysql"

  migrations: [
    {
      id: "1774056209"
      name: "add_name_index"
      applied: true
    }

    {
      id: "1774142609"
      name: "alter_token_index"
      applied: true
    }

    {
      id: "1774229009"
      name: "alter_comment_column"
      applied: true
    }

    {
      id: "1774315409"
      name: "add_name_column"
      applied: false
    }

    {
      id: "1774401809"
      name: "create_createdAt_table"
      applied: false
    }

    {
      id: "1774488209"
      name: "drop_password_index"
      applied: false
    }
  ]

  environments: {
    dev: {
      host: "dev-db.insidious-crocodile.net"
      port: 5432
      ssl: false
    }

    staging: {
      host: "staging-db.cultivated-obligation.org"
      port: 5432
      ssl: true
    }

    prod: {
      host: "prod-db.steep-heartbeat.name"
      port: 5432
      ssl: true
    }
  }
}

See Also