update README
This commit is contained in:
parent
c192b86d9e
commit
272ad45943
@ -98,6 +98,8 @@ FYI, AutoMigrate will only add new columns, won't change column's type or delete
|
|||||||
|
|
||||||
If table doesn't exist when AutoMigrate, it will run create table automatically.
|
If table doesn't exist when AutoMigrate, it will run create table automatically.
|
||||||
|
|
||||||
|
(only postgres and mysql supported)
|
||||||
|
|
||||||
```go
|
```go
|
||||||
db.AutoMigrate(User{})
|
db.AutoMigrate(User{})
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user