1
0
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:
Scott Bishel 2022-04-13 08:39:54 -06:00 committed by GitHub
commit a69a6f65f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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,