Skip to content

568 - Migration Plan

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

maml
{
  schema_version: "2.16.6"
  database: "sqlite"

  migrations: [
    {
      id: "1774228662"
      name: "create_avatar_table"
      applied: true
    }

    {
      id: "1774315062"
      name: "drop_phone_column"
      applied: true
    }

    {
      id: "1774401462"
      name: "alter_createdAt_table"
      applied: true
    }
  ]

  environments: {
    dev: {
      host: "dev-db.shrill-mom.info"
      port: 5432
      ssl: false
    }

    staging: {
      host: "staging-db.swift-convection.biz"
      port: 5432
      ssl: true
    }

    prod: {
      host: "prod-db.wretched-whack.net"
      port: 5432
      ssl: true
    }
  }
}

See Also