mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
migration: preserve index names and a couple of fixes (#24296)
This commit is contained in:
parent
ef89e9601c
commit
d9af86f3ac
@ -4,7 +4,9 @@ LOAD DATABASE
|
|||||||
|
|
||||||
WITH data only,
|
WITH data only,
|
||||||
workers = 8, concurrency = 1,
|
workers = 8, concurrency = 1,
|
||||||
multiple readers per thread, rows per range = 50000
|
multiple readers per thread, rows per range = 50000,
|
||||||
|
create no tables,
|
||||||
|
preserve index names
|
||||||
|
|
||||||
SET PostgreSQL PARAMETERS
|
SET PostgreSQL PARAMETERS
|
||||||
maintenance_work_mem to '128MB',
|
maintenance_work_mem to '128MB',
|
||||||
@ -14,7 +16,10 @@ SET MySQL PARAMETERS
|
|||||||
net_read_timeout = '120',
|
net_read_timeout = '120',
|
||||||
net_write_timeout = '120'
|
net_write_timeout = '120'
|
||||||
|
|
||||||
CAST column Drafts.Priority to text,
|
CAST column Channels.Type to "channel_type" drop typemod,
|
||||||
|
column Teams.Type to "team_type" drop typemod,
|
||||||
|
column UploadSessions.Type to "upload_session_type" drop typemod,
|
||||||
|
column Drafts.Priority to text,
|
||||||
type int when (= precision 11) to integer drop typemod,
|
type int when (= precision 11) to integer drop typemod,
|
||||||
type bigint when (= precision 20) to bigint drop typemod,
|
type bigint when (= precision 20) to bigint drop typemod,
|
||||||
type text to varchar drop typemod,
|
type text to varchar drop typemod,
|
||||||
|
Loading…
Reference in New Issue
Block a user