Skip to content

773 - Migration Plan

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

maml
{
  schema_version: "6.15.11"
  database: "sqlite"

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

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

    {
      id: "1774574841"
      name: "add_createdAt_index"
      applied: true
    }

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

    {
      id: "1774747641"
      name: "alter_token_column"
      applied: false
    }
  ]

  environments: {
    dev: {
      host: "dev-db.red-knight.name"
      port: 5432
      ssl: false
    }

    staging: {
      host: "staging-db.flawed-pepper.com"
      port: 5432
      ssl: true
    }

    prod: {
      host: "prod-db.jumbo-councilman.org"
      port: 5432
      ssl: true
    }
  }
}

See Also