go-gorm / gorm

The fantastic ORM library for Golang, aims to be developer friendly
https://gorm.io
MIT License
36.03k stars 3.86k forks source link

Alias for AutoMigrate #7048

Closed BreathXV closed 2 weeks ago

BreathXV commented 4 weeks ago

Describe the feature

Have another alias for AutoMigrate to make it easier to understand what the function does for newcomers. Having an alias such as SyncSchema.

Motivation

Was recently working on a project and despite following the documentation posted, it was confusing seeing AutoMigrate being used but as it does not have any hint that it creates the tables, it left me baffled for a while.

Related Issues

N/A

jinzhu commented 2 weeks ago

Let's work together to improve the documentation. More APIs are not necessarily better for the project's development and can be ambiguous.