Merge pull request #2774 from mattermost/mysql-5.7-uuid-fix
Avoided using UUID() as function param for MySQL migration
This commit is contained in:
commit
a69a6f65f5
2 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ CREATE TABLE {{.prefix}}categories (
|
|||
REPLACE(uuid_in(md5(random()::text || clock_timestamp()::text)::cstring)::varchar, '-', ''),
|
||||
{{ end }}
|
||||
{{ if .mysql }}
|
||||
REPLACE(UUID(), '-', ''),
|
||||
UUID(),
|
||||
{{ end }}
|
||||
COALESCE(nullif(c.DisplayName, ''), 'Direct Message') as category_name,
|
||||
cm.UserId,
|
||||
|
|
|
@ -16,7 +16,7 @@ CREATE TABLE {{.prefix}}category_blocks (
|
|||
REPLACE(uuid_in(md5(random()::text || clock_timestamp()::text)::cstring)::varchar, '-', ''),
|
||||
{{ end }}
|
||||
{{ if .mysql }}
|
||||
REPLACE(UUID(), '-', ''),
|
||||
UUID(),
|
||||
{{ end }}
|
||||
{{.prefix}}categories.user_id,
|
||||
{{.prefix}}categories.id,
|
||||
|
|
Loading…
Reference in a new issue