DB Migrations #67
|
@ -32,6 +32,9 @@ date +%Y%m%d%H%M%S
|
|||
New migrations should be added via the `init()` function to the `migrations` variable.
|
||||
All migrations are sorted before being executed, since `init()` does not guarantee the order.
|
||||
|
||||
When you're adding a new struct, you also need to add it to the `models.GetTables()` function
|
||||
to ensure it will be created on new installations.
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
|
|
Loading…
Reference in New Issue
Block a user