Skip to content

763 - Migration Plan

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

maml
{
  schema_version: "9.18.5"
  database: "sqlite"

  migrations: [
    {
      id: "1774402041"
      name: "alter_email_column"
      applied: true
    }

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

    {
      id: "1774574841"
      name: "drop_status_table"
      applied: true
    }
  ]

  environments: {
    dev: {
      host: "dev-db.swift-runway.org"
      port: 5432
      ssl: false
    }

    staging: {
      host: "staging-db.untried-reward.com"
      port: 5432
      ssl: true
    }

    prod: {
      host: "prod-db.blind-exploration.info"
      port: 5432
      ssl: true
    }
  }
}

See Also