Require presence of up block; optional space after -- (#72)

This commit is contained in:
Ben Reinhart 2019-05-20 16:37:20 -07:00 committed by GitHub
parent a31e06b438
commit 02c7bda8a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 55 additions and 26 deletions

View file

@ -218,10 +218,9 @@ dbmate supports options passed to a migration block in the form of `key:value` p
```sql
-- migrate:up transaction:false
ALTER TYPE colors ADD VALUE 'orange' AFTER 'red';
ALTER TYPE colors ADD VALUE 'yellow' AFTER 'orange';
```
`transaction` will default to `true` for if your database supports it.
`transaction` will default to `true` if your database supports it.
### Schema File