Skip to content

Commit

Permalink
fix of MDEV-24312
Browse files Browse the repository at this point in the history
Move event table change to the group
of the event table changes after which
event scheduler can be started.
  • Loading branch information
sanja-byelkin authored and vuvova committed May 20, 2021
1 parent 852d1f8 commit 4e946cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/mysql_system_tables_fix.sql
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,8 @@ ALTER TABLE event ADD body_utf8 longblob DEFAULT NULL
AFTER db_collation;
ALTER TABLE event MODIFY body_utf8 longblob DEFAULT NULL;

alter table event MODIFY definer varchar(384) collate utf8_bin NOT NULL DEFAULT '';

# Enable event scheduler if the event table was not up to date before.
set global event_scheduler=original;

Expand Down Expand Up @@ -746,7 +748,6 @@ alter table tables_priv modify User char(128) binary not null default
alter table columns_priv modify User char(128) binary not null default '';
alter table procs_priv modify User char(128) binary not null default '';
alter table proc modify definer varchar(384) collate utf8_bin not null default '';
alter table event modify definer varchar(384) collate utf8_bin not null default '';
alter table proxies_priv modify User char(128) COLLATE utf8_bin not null default '';
alter table proxies_priv modify Proxied_user char(128) COLLATE utf8_bin not null default '';
alter table proxies_priv modify Grantor varchar(384) COLLATE utf8_bin not null default '';
Expand Down

0 comments on commit 4e946cb

Please sign in to comment.