Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sqlite3 db connection #7

Closed
DevBadi opened this issue Apr 18, 2021 · 2 comments
Closed

Sqlite3 db connection #7

DevBadi opened this issue Apr 18, 2021 · 2 comments

Comments

@DevBadi
Copy link

DevBadi commented Apr 18, 2021

Describe the bug
When I select the Sqlite3 DB I get :

near "CONSTRAINT": syntax error
Auto migration failed!

File :
AutoMigrate.go

@pilinux
Copy link
Owner

pilinux commented Apr 18, 2021

Please disable this function with // when you use PostgreSQL or Sqlite3 database.

https://github.com/piLinux/GoREST/blob/c2fe9034f22b073e383cb8965850d9fe9fe7468c/database/migrate/autoMigrate.go#L49

@DevBadi
Copy link
Author

DevBadi commented Apr 19, 2021

It is working now.
Thanks

@DevBadi DevBadi closed this as completed Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants