forked from SlateFoundation/slate-fixtures
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcourse_sections.sql
More file actions
66 lines (62 loc) · 3.22 KB
/
course_sections.sql
File metadata and controls
66 lines (62 loc) · 3.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `course_sections` (
`ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
`Class` enum('Slate\\Courses\\Section') NOT NULL,
`Created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`CreatorID` int(11) DEFAULT NULL,
`Modified` timestamp NULL DEFAULT NULL,
`ModifierID` int(10) unsigned DEFAULT NULL,
`CourseID` int(10) unsigned NOT NULL,
`Title` varchar(255) NOT NULL,
`Code` varchar(255) NOT NULL,
`Status` enum('Hidden','Live','Deleted') NOT NULL DEFAULT 'Live',
`Notes` text,
`StudentsCapacity` int(10) unsigned DEFAULT NULL,
`TermID` int(10) unsigned DEFAULT NULL,
`ScheduleID` int(10) unsigned DEFAULT NULL,
`LocationID` int(10) unsigned DEFAULT NULL,
PRIMARY KEY (`ID`),
UNIQUE KEY `Code` (`Code`),
KEY `CourseID` (`CourseID`),
FULLTEXT KEY `FULLTEXT` (`Notes`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
INSERT INTO `course_sections` VALUES (1,'Slate\\Courses\\Section','2017-08-28 21:49:14',1,NULL,NULL,1,'Science Studio','SCI-001','Live',NULL,NULL,1,NULL,NULL);
INSERT INTO `course_sections` VALUES (2,'Slate\\Courses\\Section','2017-08-28 21:49:14',1,NULL,NULL,2,'ELA Studio','ELA-001','Live',NULL,NULL,1,NULL,NULL);
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `history_course_sections` (
`RevisionID` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ID` int(10) unsigned NOT NULL,
`Class` enum('Slate\\Courses\\Section') NOT NULL,
`Created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`CreatorID` int(11) DEFAULT NULL,
`Modified` timestamp NULL DEFAULT NULL,
`ModifierID` int(10) unsigned DEFAULT NULL,
`CourseID` int(10) unsigned NOT NULL,
`Title` varchar(255) NOT NULL,
`Code` varchar(255) NOT NULL,
`Status` enum('Hidden','Live','Deleted') NOT NULL DEFAULT 'Live',
`Notes` text,
`StudentsCapacity` int(10) unsigned DEFAULT NULL,
`TermID` int(10) unsigned DEFAULT NULL,
`ScheduleID` int(10) unsigned DEFAULT NULL,
`LocationID` int(10) unsigned DEFAULT NULL,
PRIMARY KEY (`RevisionID`),
KEY `ID` (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
INSERT INTO `history_course_sections` VALUES (1,1,'Slate\\Courses\\Section','2017-08-28 21:49:14',1,NULL,NULL,1,'Science Studio','SCI-001','Live',NULL,NULL,1,NULL,NULL);
INSERT INTO `history_course_sections` VALUES (2,2,'Slate\\Courses\\Section','2017-08-28 21:49:14',1,NULL,NULL,2,'ELA Studio','ELA-001','Live',NULL,NULL,1,NULL,NULL);
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;