Skip to content

2862 - Migration Plan

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

maml
{
  schema_version: "0.16.13"
  database: "mysql"

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

    {
      id: "1776304211"
      name: "alter_status_index"
      applied: true
    }

    {
      id: "1776390611"
      name: "create_phone_column"
      applied: true
    }

    {
      id: "1776477011"
      name: "alter_updatedAt_column"
      applied: false
    }

    {
      id: "1776563411"
      name: "add_title_column"
      applied: false
    }

    {
      id: "1776649811"
      name: "drop_email_table"
      applied: false
    }
  ]

  environments: {
    dev: {
      host: "dev-db.subdued-collectivization.name"
      port: 5432
      ssl: false
    }

    staging: {
      host: "staging-db.supportive-basket.biz"
      port: 5432
      ssl: true
    }

    prod: {
      host: "prod-db.clear-caption.name"
      port: 5432
      ssl: true
    }
  }
}

See Also