Skip to content

Fix gotrue migrate #182

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

Closed
grinkus opened this issue Aug 31, 2018 · 3 comments
Closed

Fix gotrue migrate #182

grinkus opened this issue Aug 31, 2018 · 3 comments

Comments

@grinkus
Copy link

grinkus commented Aug 31, 2018

- Do you want to request a feature or report a bug?
Bug

- What is the current behavior?
When running gotrue migrate on a fresh docker instance (with mysql:5.7) it exits with:

DEBU[2018-08-31T21:37:00.283202945Z] Set log level to: debug                      
INFO[2018-08-31T21:37:00.283456644Z] Reading migrations from /usr/local/etc/gotrue/migrations 
INFO[2018-08-31T21:37:00.28450867Z] before status                                
[POP] 2018/08/31 21:37:00 CREATE TABLE schema_migration (
version VARCHAR (255) NOT NULL
) ENGINE=InnoDB;
CREATE UNIQUE INDEX version_idx ON schema_migration (version);
FATA[2018-08-31T21:37:00.289102913Z] Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CREATE UNIQUE INDEX version_idx ON schema_migration (version)' at line 4
github.com/netlify/gotrue/vendor/github.com/gobuffalo/pop.(*Connection).timeFunc
	/go/src/github.com/netlify/gotrue/vendor/github.com/gobuffalo/pop/connection.go:184
github.com/netlify/gotrue/vendor/github.com/gobuffalo/pop.(*Query).Exec
	/go/src/github.com/netlify/gotrue/vendor/github.com/gobuffalo/pop/executors.go:19

- If the current behavior is a bug, please provide the steps to reproduce.
On a fresh docker instance run gotrue migrate.

- What is the expected behavior?
DB is successfully inited.

- Please mention your Go version, and operating system version.
Linux 25ffb6af1032 4.15.0-33-generic #36~16.04.1-Ubuntu SMP Wed Aug 15 17:21:05 UTC 2018 x86_64 Linux
golang:1.9.2
As specified in the Dockerfile

@k1ng440
Copy link

k1ng440 commented Oct 16, 2018

I am running into the same problem.

@k1ng440
Copy link

k1ng440 commented Oct 16, 2018

#188

@k1ng440
Copy link

k1ng440 commented Oct 19, 2018

This issue has been solved. Please close it.

@grinkus grinkus closed this as completed Oct 19, 2018
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