mirror of
https://github.com/mattermost/focalboard.git
synced 2024-11-24 08:22:29 +02:00
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
@ -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 New Issue
Block a user