Skip to content

1775 - Migration Plan

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

maml
{
  schema_version: "0.20.19"
  database: "sqlite"

  migrations: [
    {
      id: "1775265450"
      name: "alter_name_table"
      applied: true
    }

    {
      id: "1775351850"
      name: "drop_token_table"
      applied: true
    }

    {
      id: "1775438250"
      name: "add_phone_table"
      applied: true
    }

    {
      id: "1775524650"
      name: "drop_password_index"
      applied: false
    }
  ]

  environments: {
    dev: {
      host: "dev-db.alarmed-community.com"
      port: 5432
      ssl: false
    }

    staging: {
      host: "staging-db.flawed-omelet.info"
      port: 5432
      ssl: true
    }

    prod: {
      host: "prod-db.standard-quit.com"
      port: 5432
      ssl: true
    }
  }
}

See Also