Commit a53d605a authored by Craig Earley's avatar Craig Earley
Browse files

Merge branch 'database-creation' into 'developer'

adds simple database initialization and drop scripts

See merge request webdev/epic-journey-display!1
parents fa3db4ee ba8be959
DROP TABLE IF EXISTS majors CASCADE;
DROP TABLE IF EXISTS minors CASCADE;
DROP TABLE IF EXISTS ips CASCADE;
DROP TABLE IF EXISTS campus_life CASCADE;
DROP TABLE IF EXISTS community_engagement CASCADE;
DROP TABLE IF EXISTS research CASCADE;
DROP TABLE IF EXISTS internship CASCADE;
DROP TABLE IF EXISTS off_campus_study CASCADE;
DROP TABLE IF EXISTS career CASCADE;
CREATE TABLE majors (
major_id int primary key,
major_name varchar(20) NOT NULL
);
CREATE TABLE minors (
minor_id int primary key,
minor_name varchar(20) NOT NULL
);
CREATE TABLE ips (
ip_id int primary key,
ip_name varchar(20) NOT NULL
);
CREATE TABLE campus_life (
campus_id int primary key,
campus_name varchar(20) NOT NULL
);
CREATE TABLE community_engagement (
comm_id int primary key,
comm_name varchar(20) NOT NULL
);
CREATE TABLE research (
research_id int primary key,
research_name varchar(20) NOT NULL
);
CREATE TABLE internship (
intern_id int primary key,
intern_name varchar(20) NOT NULL
);
CREATE TABLE off_campus_study (
offcamp_id int primary key,
offcamp_name varchar(20) NOT NULL
);
CREATE TABLE career (
career_id int primary key,
career_name varchar(20) NOT NULL
);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment