Skip to content

2068 - Migration Plan

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

maml
{
  schema_version: "8.5.10"
  database: "sqlite"

  migrations: [
    {
      id: "1775526289"
      name: "drop_group_column"
      applied: true
    }

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

    {
      id: "1775699089"
      name: "alter_category_index"
      applied: true
    }

    {
      id: "1775785489"
      name: "alter_comment_table"
      applied: false
    }

    {
      id: "1775871889"
      name: "add_group_table"
      applied: false
    }
  ]

  environments: {
    dev: {
      host: "dev-db.tragic-privilege.org"
      port: 5432
      ssl: false
    }

    staging: {
      host: "staging-db.naughty-sticker.biz"
      port: 5432
      ssl: true
    }

    prod: {
      host: "prod-db.married-wilderness.com"
      port: 5432
      ssl: true
    }
  }
}

See Also