rosehill/scripts/migration/0-0.1/databaseChanges.sql

16 lines
462 B
MySQL
Raw Normal View History

2014-08-18 19:53:40 +00:00
alter table people add username varchar(40) unique;
alter table people add password varchar(40);
alter table people add authenticationMethod varchar(40);
alter table people add role varchar(30);
update people p, users u
set p.username=u.username, p.authenticationMethod=u.authenticationMethod
where p.id=u.person_id;
update people set role='Staff';
update people set role='Administrator' where id=1;
drop table user_roles;
drop table roles;
drop table users;