Skip to content

1461 - Migration Plan

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

maml
{
  schema_version: "0.20.6"
  database: "postgresql"

  migrations: [
    {
      id: "1775006860"
      name: "create_comment_table"
      applied: true
    }

    {
      id: "1775093260"
      name: "create_group_index"
      applied: true
    }

    {
      id: "1775179660"
      name: "create_name_column"
      applied: true
    }

    {
      id: "1775266060"
      name: "drop_createdAt_table"
      applied: false
    }
  ]

  environments: {
    dev: {
      host: "dev-db.sturdy-knight.info"
      port: 5432
      ssl: false
    }

    staging: {
      host: "staging-db.smug-cellar.org"
      port: 5432
      ssl: true
    }

    prod: {
      host: "prod-db.rubbery-rim.info"
      port: 5432
      ssl: true
    }
  }
}

See Also