Commit 1db6c3a2 authored by Sergei Golubchik's avatar Sergei Golubchik

extend the test case to better emulate 5.7 user table

parent 07e9b138
...@@ -60,7 +60,12 @@ max_statement_time decimal(12,6) NO 0.000000 ...@@ -60,7 +60,12 @@ max_statement_time decimal(12,6) NO 0.000000
# #
# Drop the password column. # Drop the password column.
# #
alter table mysql.user drop column password; alter table mysql.user drop column password,
drop column is_role,
drop column default_role,
add column password_last_changed timestamp null default null after password_expired,
add column password_lifetime smallint unsigned after password_last_changed,
add column account_locked enum('n','y') character set utf8 not null default 'n' after password_lifetime;
flush privileges; flush privileges;
# #
# Create users without the password column present. # Create users without the password column present.
......
...@@ -17,7 +17,12 @@ describe mysql.user; ...@@ -17,7 +17,12 @@ describe mysql.user;
--echo # --echo #
--echo # Drop the password column. --echo # Drop the password column.
--echo # --echo #
alter table mysql.user drop column password; alter table mysql.user drop column password,
drop column is_role,
drop column default_role,
add column password_last_changed timestamp null default null after password_expired,
add column password_lifetime smallint unsigned after password_last_changed,
add column account_locked enum('n','y') character set utf8 not null default 'n' after password_lifetime;
flush privileges; flush privileges;
--echo # --echo #
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment