-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdrop.sql
More file actions
36 lines (34 loc) · 875 Bytes
/
Copy pathdrop.sql
File metadata and controls
36 lines (34 loc) · 875 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
30
31
32
33
34
35
36
/*
Run this SQL file in order to clear the database to be able to perform all
create commands again.
*/
/* Drop all tables */
DROP TABLE isWaiting;
DROP TABLE prerequisites;
DROP TABLE hasClassifications;
DROP TABLE isGiven;
DROP TABLE belongsTo;
DROP TABLE programmeMandatory;
DROP TABLE branchMandatory;
DROP TABLE recommendedCourse;
DROP TABLE hasRegistered;
DROP TABLE hasCompleted;
DROP TABLE attendsTo;
DROP TABLE RestrictedCourses;
DROP TABLE Courses;
DROP TABLE Classifications;
DROP TABLE isHosting;
DROP TABLE Students;
DROP TABLE Branches;
DROP TABLE Programmes;
DROP TABLE Departments;
/* Drop all views */
DROP VIEW StudentsFollowing;
DROP VIEW FinishedCourses;
DROP VIEW Registrations;
DROP VIEW PassedCourses;
DROP VIEW UnreadMandatory;
DROP VIEW pathToGraduationHelper;
DROP VIEW PathToGraduation;
DROP VIEW CourseQueuePositions;
DROP VIEW CourseView;