Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,10 @@ atlas migrate diff <migration_name> \
```
The `--format` flag uses a tab as indentation. If you want to manually edit this command you can use
`ctrl + v + tab` to insert a tab character in your shell.

Applying the migration:
```bash
atlas migrate apply \
--dir file://internal/database/migrations \
--url "postgres://mensatt:mensatt@localhost:5432/mensatt?search_path=public&sslmode=disable"
```
2 changes: 2 additions & 0 deletions internal/database/ent/migrate/schema.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

134 changes: 132 additions & 2 deletions internal/database/ent/mutation.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 21 additions & 2 deletions internal/database/ent/runtime.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 27 additions & 1 deletion internal/database/ent/user.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions internal/database/ent/user/user.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading