Example 14163

Migration Plan

Database migration plan across environments.

{
schema_version: "5.20.5"
database: "mysql"

migrations: [
{
id: "1785977924"
name: "alter_phone_table"
applied: true
}

{
id: "1786064324"
name: "create_avatar_index"
applied: true
}

{
id: "1786150724"
name: "drop_email_table"
applied: true
}

{
id: "1786237124"
name: "create_comment_index"
applied: false
}

{
id: "1786323524"
name: "create_password_index"
applied: false
}

{
id: "1786409924"
name: "create_email_column"
applied: false
}
]

environments: {
dev: {
host: "dev-db.harmful-hawk.com"
port: 5432
ssl: false
}

staging: {
host: "staging-db.well-groomed-grass.name"
port: 5432
ssl: true
}

prod: {
host: "prod-db.fake-secret.net"
port: 5432
ssl: true
}
}
}

See also