-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdbDROP.sql
More file actions
30 lines (23 loc) · 791 Bytes
/
dbDROP.sql
File metadata and controls
30 lines (23 loc) · 791 Bytes
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
SET FOREIGN_KEY_CHECKS = 0;
DROP TABLE IF EXISTS User;
DROP TABLE IF EXISTS Student;
DROP TABLE IF EXISTS Instructor;
DROP TABLE IF EXISTS Admin;
DROP TABLE IF EXISTS Topic;
DROP TABLE IF EXISTS SQLProblem;
DROP TABLE IF EXISTS Attempt;
DROP TABLE IF EXISTS Message;
DROP TABLE IF EXISTS Notification;
DROP TABLE IF EXISTS Comment;
DROP TABLE IF EXISTS LearningAnalytics;
DROP TABLE IF EXISTS Badge;
DROP TABLE IF EXISTS StudentBadge;
DROP TABLE IF EXISTS Hint;
DROP TABLE IF EXISTS UserIndex;
DROP PROCEDURE IF EXISTS AssignBadges;
DROP FUNCTION IF EXISTS CalculateTopicProgress;
DROP TRIGGER IF EXISTS after_user_insert;
DROP TRIGGER IF EXISTS after_message_insert;
DROP VIEW IF EXISTS StudentPerformanceView;
DROP VIEW IF EXISTS ProblemDifficultyStats;
SET FOREIGN_KEY_CHECKS = 1;