Advertisement
zahari4i

Untitled

Oct 22nd, 2024
13
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. alter table users
  2. modify name varchar(50) null;
  3.  
  4. alter table users
  5. modify surname varchar(50) null;
  6.  
  7. alter table users
  8. drop column country;
  9.  
  10. alter table users
  11. add locale_id smallint unsigned null after country_id;
  12.  
  13. alter table users
  14. modify region varchar(50) null;
  15.  
  16. alter table users
  17. modify city varchar(50) null;
  18.  
  19. alter table users
  20. modify zip varchar(20) null;
  21.  
  22. alter table users
  23. modify address varchar(100) null;
  24.  
  25. alter table users
  26. add test boolean default false not null after deleted;
  27.  
  28. alter table users
  29. add last_activity datetime default current_timestamp null after test;
  30.  
  31. alter table users
  32. add constraint users_locales_id_fk
  33. foreign key (locale_id) references locales (id);
  34.  
  35.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement