Skip to content

Commit

Permalink
drop fulltext index
Browse files Browse the repository at this point in the history
  • Loading branch information
thehowl committed Oct 27, 2017
1 parent bbbc2fd commit ef4255c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cheesegull.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func addTimeParsing(dsn string) string {
if strings.Contains(dsn, "?") {
sep = "&"
}
dsn += sep + "parseTime=true"
dsn += sep + "parseTime=true&multiStatements=true"
return dsn
}

Expand Down
1 change: 1 addition & 0 deletions models/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,5 @@ var migrations = [...]string{
`ALTER TABLE sets ADD FULLTEXT(artist, title, creator, source, tags);`,
`ALTER TABLE beatmaps MODIFY difficulty_rating DECIMAL(20, 15);
`,
`ALTER TABLE sets DROP INDEX artist;`,
}
1 change: 1 addition & 0 deletions models/migrations/0005.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE sets DROP INDEX artist;

0 comments on commit ef4255c

Please sign in to comment.