> ⚠️ Do **not** place executable "Down" SQL in the same file. The runner does not parse goose Up/Down sections and will execute all SQL statements in the file.
## Important Rules
## Important Rules
### ⚠️ Immutability Principle
### ⚠️ Immutability Principle
...
@@ -66,9 +66,9 @@ Why?
...
@@ -66,9 +66,9 @@ Why?
touch migrations/018_your_change.sql
touch migrations/018_your_change.sql
```
```
2.**Write Up and Down migrations**
2.**Write forward-only migration SQL**
-Up: Apply the change
-Put only the intended schema change in the file
-Down: Revert the change (should be symmetric with Up)
-If rollback is needed, create a new migration file to revert