* dialect/sql/schema: fix go doc
* all: update atlas
* dialect/sql/schema: diff connected DB and defined schema and write changes to migration file
* dialect/sql/schema: use migration directory and formatter directly instead of a planner
* all: update atlas
* cmd: add command to create a new migration file
* entc/gen: generate main.go with migrate diff example
* all: regenerate
* cmd/internal/base: make linter happy
* all: support Go 1.16 in versioned migrations main.go
* entc/gen: put versioned migrations behind feature flag
* all: regenerate
* cmd/ent: driver-prefixed dsn in migrate diff command
* cmd/internal/base: remove prefix from migrate import
* cmd/internal/base: use cobra.CheckErr
* cmd: remove diff command
* entc/gen/template/dialect/sql/feature: remove generated main.go
* all: rebase on master and go mod tidy
* all: regenerate
* doc: fix github link
* doc: fix Link entgo.io -> github.com/ent
* 🎉 first commit
* update go generate style
* doc: update go get to go install
* doc: update versioning with go install
* restore all
* change generate.go content
* add -mod=mod option
* add -mod=mod option
* adds checks for name conflicts
also tidies up error handling inside init
* fix failing test, check for lower name for golang idents
* update function name and prefer builtin function
* pkg instead of lowerName
Summary:
Pull Request resolved: https://github.com/facebookincubator/ent/pull/186
This is an ongoing work for fixing #61 (Github issue)
Reviewed By: alexsn
Differential Revision: D18672982
fbshipit-source-id: 12051d7b06d87d73d37b68382566732e532193e3