course_search.install

  1. 7.x modules/course_search/course_search.install
  2. 6.x modules/course_search/course_search.install
  3. 4.x modules/course_search/course_search.install
  4. 5.x modules/course_search/course_search.install

File

modules/course_search/course_search.install
View source
  1. <?php
  2. /**
  3. * Implementation of hook_install
  4. */
  5. function course_search_install() {
  6. $query = "
  7. CREATE TABLE `course_rotation_schedule` (
  8. `id` int(11) NOT NULL AUTO_INCREMENT,
  9. `faculty_id` varchar(30) NOT NULL DEFAULT '',
  10. `course_id` int(11) NOT NULL DEFAULT 0,
  11. `term_id` varchar(20) NOT NULL DEFAULT '',
  12. `entry_value` varchar(20) NOT NULL DEFAULT '',
  13. `posted` int(10) unsigned NOT NULL DEFAULT 0,
  14. `capacity` int(11) DEFAULT NULL,
  15. PRIMARY KEY (`id`),
  16. KEY `capacity` (`capacity`),
  17. KEY `course_id` (`course_id`),
  18. KEY `term_id` (`term_id`),
  19. KEY `posted` (`posted`)
  20. ); ";
  21. db_query($query);
  22. $query = "
  23. CREATE TABLE `course_syllabi` (
  24. `id` int(11) NOT NULL AUTO_INCREMENT,
  25. `course_id` int(11) NOT NULL DEFAULT 0,
  26. `course_perm_id` varchar(20) NOT NULL DEFAULT '',
  27. `filename` varchar(255) NOT NULL DEFAULT '',
  28. `posted` int(10) unsigned NOT NULL DEFAULT 0,
  29. PRIMARY KEY (`id`),
  30. KEY `course_id` (`course_id`),
  31. KEY `perm` (`course_perm_id`)
  32. ); ";
  33. db_query($query);
  34. } // hook_install
  35. /**
  36. * Implements hook_update
  37. */
  38. function course_search_update($old_schema, $new_schema) {
  39. } // hook_update

Functions

Namesort descending Description
course_search_install Implementation of hook_install
course_search_update Implements hook_update