update.sql 902 B

123456789101112131415161718192021222324252627
  1. TRUNCATE TABLE `campuses`;
  2. TRUNCATE TABLE `course_campuses`;
  3. TRUNCATE TABLE `course_intakes`;
  4. TRUNCATE TABLE `course_tags`;
  5. TRUNCATE TABLE `courses`;
  6. TRUNCATE TABLE `destinations`;
  7. TRUNCATE TABLE `institutes`;
  8. TRUNCATE TABLE `levels`;
  9. ALTER TABLE `courses`
  10. CHANGE `ielts` `ielts` tinytext NULL DEFAULT NULL,
  11. CHANGE `toefl` `toefl` tinytext NULL DEFAULT NULL,
  12. CHANGE `pte` `pte` tinytext NULL DEFAULT NULL,
  13. CHANGE `duolingo` `duolingo` tinytext NULL DEFAULT NULL,
  14. ADD COLUMN `entry_requirement` longtext NULL DEFAULT NULL AFTER `reference`;
  15. ALTER TABLE `destinations`
  16. ADD COLUMN `short_code` varchar(255) NULL DEFAULT NULL AFTER `name`,
  17. ADD COLUMN `currency` varchar(255) NULL DEFAULT NULL AFTER `short_code`;
  18. ALTER TABLE `courses`
  19. CHANGE `deposit_required` `deposit_required` tinytext NULL DEFAULT NULL;
  20. ALTER TABLE `courses`
  21. CHANGE `scholarship` `scholarship` tinytext NULL DEFAULT NULL;