Skip to content

1861 - Migration Plan

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

maml
{
  schema_version: "8.6.5"
  database: "sqlite"

  migrations: [
    {
      id: "1775352477"
      name: "create_password_column"
      applied: true
    }

    {
      id: "1775438877"
      name: "create_name_table"
      applied: true
    }

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

    {
      id: "1775611677"
      name: "add_avatar_table"
      applied: false
    }
  ]

  environments: {
    dev: {
      host: "dev-db.splendid-pliers.biz"
      port: 5432
      ssl: false
    }

    staging: {
      host: "staging-db.wavy-moment.net"
      port: 5432
      ssl: true
    }

    prod: {
      host: "prod-db.every-requirement.net"
      port: 5432
      ssl: true
    }
  }
}

See Also