Atlas Migration Plan
plan
The plan block defines a schema migration for a transition between two schema states.
plan "20240806145620" {
# Hashes generated by the 'atlas schema plan new' command.
from = "SMKH4vp9zdHDtpr9NrB4Li3n8x0meA3QrnRdJZuDQDM="
to = "oCvOMG7NOE+XUz04UA674zNYVdrN3qoFkJDZPKLPGA0="
# Actual migratio.
migration = <<-SQL
-- Migration content goes here.
SQL
}
plan attributes
| Name and description | Required | Value |
|---|---|---|
Hash of the current schema state computed by Atlas | true | string |
The actual migration statements. For example: | true | string |
Hash of the desired schema state computed by Atlas | true | string |
plan constraints
| Constraint | Value |
|---|---|
| Required | true |
Require Name (e.g., plan "name" ) | true |