
@Ralf TODO: migration /Users/groucho/Documents/HPI/workspace/Xikolo-CodeOcean/codeocean/db/migrate/20160204111716_add_user_to_code_harbor_link.rb is broken. A reference is made to table users which does not exist. Workaround: run rake db:schema:load before running db:migrate. Still this should be fixed.
1228 lines
28 KiB
SQL
1228 lines
28 KiB
SQL
--
|
|
-- PostgreSQL database dump
|
|
--
|
|
|
|
-- Dumped from database version 9.5.5
|
|
-- Dumped by pg_dump version 9.5.5
|
|
|
|
SET statement_timeout = 0;
|
|
SET lock_timeout = 0;
|
|
SET client_encoding = 'UTF8';
|
|
SET standard_conforming_strings = on;
|
|
SET check_function_bodies = false;
|
|
SET client_min_messages = warning;
|
|
SET row_security = off;
|
|
|
|
--
|
|
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -
|
|
--
|
|
|
|
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
|
|
|
|
|
|
--
|
|
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: -
|
|
--
|
|
|
|
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
|
|
|
|
|
|
SET search_path = public, pg_catalog;
|
|
|
|
SET default_tablespace = '';
|
|
|
|
SET default_with_oids = false;
|
|
|
|
--
|
|
-- Name: code_harbor_links; Type: TABLE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE TABLE code_harbor_links (
|
|
id integer NOT NULL,
|
|
oauth2token character varying(255),
|
|
created_at timestamp without time zone,
|
|
updated_at timestamp without time zone,
|
|
user_id integer
|
|
);
|
|
|
|
|
|
--
|
|
-- Name: code_harbor_links_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE SEQUENCE code_harbor_links_id_seq
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
--
|
|
-- Name: code_harbor_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER SEQUENCE code_harbor_links_id_seq OWNED BY code_harbor_links.id;
|
|
|
|
|
|
--
|
|
-- Name: comments; Type: TABLE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE TABLE comments (
|
|
id integer NOT NULL,
|
|
user_id integer,
|
|
file_id integer,
|
|
user_type character varying(255),
|
|
"row" integer,
|
|
"column" integer,
|
|
text text,
|
|
created_at timestamp without time zone,
|
|
updated_at timestamp without time zone
|
|
);
|
|
|
|
|
|
--
|
|
-- Name: comments_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE SEQUENCE comments_id_seq
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
--
|
|
-- Name: comments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER SEQUENCE comments_id_seq OWNED BY comments.id;
|
|
|
|
|
|
--
|
|
-- Name: consumers; Type: TABLE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE TABLE consumers (
|
|
id integer NOT NULL,
|
|
name character varying(255),
|
|
created_at timestamp without time zone,
|
|
updated_at timestamp without time zone,
|
|
oauth_key character varying(255),
|
|
oauth_secret character varying(255)
|
|
);
|
|
|
|
|
|
--
|
|
-- Name: consumers_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE SEQUENCE consumers_id_seq
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
--
|
|
-- Name: consumers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER SEQUENCE consumers_id_seq OWNED BY consumers.id;
|
|
|
|
|
|
--
|
|
-- Name: errors; Type: TABLE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE TABLE errors (
|
|
id integer NOT NULL,
|
|
execution_environment_id integer,
|
|
message text,
|
|
created_at timestamp without time zone,
|
|
updated_at timestamp without time zone,
|
|
submission_id integer
|
|
);
|
|
|
|
|
|
--
|
|
-- Name: errors_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE SEQUENCE errors_id_seq
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
--
|
|
-- Name: errors_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER SEQUENCE errors_id_seq OWNED BY errors.id;
|
|
|
|
|
|
--
|
|
-- Name: execution_environments; Type: TABLE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE TABLE execution_environments (
|
|
id integer NOT NULL,
|
|
docker_image character varying(255),
|
|
name character varying(255),
|
|
created_at timestamp without time zone,
|
|
updated_at timestamp without time zone,
|
|
run_command character varying(255),
|
|
test_command character varying(255),
|
|
testing_framework character varying(255),
|
|
help text,
|
|
exposed_ports character varying(255),
|
|
permitted_execution_time integer,
|
|
user_id integer,
|
|
user_type character varying(255),
|
|
pool_size integer,
|
|
file_type_id integer,
|
|
memory_limit integer,
|
|
network_enabled boolean
|
|
);
|
|
|
|
|
|
--
|
|
-- Name: execution_environments_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE SEQUENCE execution_environments_id_seq
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
--
|
|
-- Name: execution_environments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER SEQUENCE execution_environments_id_seq OWNED BY execution_environments.id;
|
|
|
|
|
|
--
|
|
-- Name: exercises; Type: TABLE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE TABLE exercises (
|
|
id integer NOT NULL,
|
|
description text,
|
|
execution_environment_id integer,
|
|
title character varying(255),
|
|
created_at timestamp without time zone,
|
|
updated_at timestamp without time zone,
|
|
user_id integer,
|
|
instructions text,
|
|
public boolean,
|
|
user_type character varying(255),
|
|
token character varying(255),
|
|
hide_file_tree boolean,
|
|
allow_file_creation boolean,
|
|
allow_auto_completion boolean DEFAULT false
|
|
);
|
|
|
|
|
|
--
|
|
-- Name: exercises_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE SEQUENCE exercises_id_seq
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
--
|
|
-- Name: exercises_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER SEQUENCE exercises_id_seq OWNED BY exercises.id;
|
|
|
|
|
|
--
|
|
-- Name: external_users; Type: TABLE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE TABLE external_users (
|
|
id integer NOT NULL,
|
|
consumer_id integer,
|
|
email character varying(255),
|
|
external_id character varying(255),
|
|
name character varying(255),
|
|
created_at timestamp without time zone,
|
|
updated_at timestamp without time zone
|
|
);
|
|
|
|
|
|
--
|
|
-- Name: external_users_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE SEQUENCE external_users_id_seq
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
--
|
|
-- Name: external_users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER SEQUENCE external_users_id_seq OWNED BY external_users.id;
|
|
|
|
|
|
--
|
|
-- Name: file_templates; Type: TABLE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE TABLE file_templates (
|
|
id integer NOT NULL,
|
|
name character varying(255),
|
|
content text,
|
|
file_type_id integer,
|
|
created_at timestamp without time zone,
|
|
updated_at timestamp without time zone
|
|
);
|
|
|
|
|
|
--
|
|
-- Name: file_templates_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE SEQUENCE file_templates_id_seq
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
--
|
|
-- Name: file_templates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER SEQUENCE file_templates_id_seq OWNED BY file_templates.id;
|
|
|
|
|
|
--
|
|
-- Name: file_types; Type: TABLE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE TABLE file_types (
|
|
id integer NOT NULL,
|
|
editor_mode character varying(255),
|
|
file_extension character varying(255),
|
|
indent_size integer,
|
|
name character varying(255),
|
|
user_id integer,
|
|
created_at timestamp without time zone,
|
|
updated_at timestamp without time zone,
|
|
executable boolean,
|
|
renderable boolean,
|
|
user_type character varying(255),
|
|
"binary" boolean
|
|
);
|
|
|
|
|
|
--
|
|
-- Name: file_types_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE SEQUENCE file_types_id_seq
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
--
|
|
-- Name: file_types_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER SEQUENCE file_types_id_seq OWNED BY file_types.id;
|
|
|
|
|
|
--
|
|
-- Name: files; Type: TABLE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE TABLE files (
|
|
id integer NOT NULL,
|
|
content text,
|
|
context_id integer,
|
|
context_type character varying(255),
|
|
file_id integer,
|
|
file_type_id integer,
|
|
hidden boolean,
|
|
name character varying(255),
|
|
read_only boolean,
|
|
created_at timestamp without time zone,
|
|
updated_at timestamp without time zone,
|
|
native_file character varying(255),
|
|
role character varying(255),
|
|
hashed_content character varying(255),
|
|
feedback_message character varying(255),
|
|
weight double precision,
|
|
path character varying(255),
|
|
file_template_id integer
|
|
);
|
|
|
|
|
|
--
|
|
-- Name: files_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE SEQUENCE files_id_seq
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
--
|
|
-- Name: files_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER SEQUENCE files_id_seq OWNED BY files.id;
|
|
|
|
|
|
--
|
|
-- Name: hints; Type: TABLE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE TABLE hints (
|
|
id integer NOT NULL,
|
|
execution_environment_id integer,
|
|
locale character varying(255),
|
|
message text,
|
|
name character varying(255),
|
|
regular_expression character varying(255),
|
|
created_at timestamp without time zone,
|
|
updated_at timestamp without time zone
|
|
);
|
|
|
|
|
|
--
|
|
-- Name: hints_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE SEQUENCE hints_id_seq
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
--
|
|
-- Name: hints_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER SEQUENCE hints_id_seq OWNED BY hints.id;
|
|
|
|
|
|
--
|
|
-- Name: internal_users; Type: TABLE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE TABLE internal_users (
|
|
id integer NOT NULL,
|
|
consumer_id integer,
|
|
email character varying(255),
|
|
name character varying(255),
|
|
role character varying(255),
|
|
created_at timestamp without time zone,
|
|
updated_at timestamp without time zone,
|
|
crypted_password character varying(255),
|
|
salt character varying(255),
|
|
failed_logins_count integer DEFAULT 0,
|
|
lock_expires_at timestamp without time zone,
|
|
unlock_token character varying(255),
|
|
remember_me_token character varying(255),
|
|
remember_me_token_expires_at timestamp without time zone,
|
|
reset_password_token character varying(255),
|
|
reset_password_token_expires_at timestamp without time zone,
|
|
reset_password_email_sent_at timestamp without time zone,
|
|
activation_state character varying(255),
|
|
activation_token character varying(255),
|
|
activation_token_expires_at timestamp without time zone
|
|
);
|
|
|
|
|
|
--
|
|
-- Name: internal_users_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE SEQUENCE internal_users_id_seq
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
--
|
|
-- Name: internal_users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER SEQUENCE internal_users_id_seq OWNED BY internal_users.id;
|
|
|
|
|
|
--
|
|
-- Name: internal_users_teams; Type: TABLE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE TABLE internal_users_teams (
|
|
id integer NOT NULL,
|
|
internal_user_id integer,
|
|
team_id integer
|
|
);
|
|
|
|
|
|
--
|
|
-- Name: internal_users_teams_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE SEQUENCE internal_users_teams_id_seq
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
--
|
|
-- Name: internal_users_teams_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER SEQUENCE internal_users_teams_id_seq OWNED BY internal_users_teams.id;
|
|
|
|
|
|
--
|
|
-- Name: lti_parameters; Type: TABLE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE TABLE lti_parameters (
|
|
id integer NOT NULL,
|
|
external_user_id character varying,
|
|
consumers_id integer,
|
|
exercises_id integer,
|
|
lti_parameters jsonb DEFAULT '{}'::jsonb NOT NULL,
|
|
created_at timestamp without time zone,
|
|
updated_at timestamp without time zone
|
|
);
|
|
|
|
|
|
--
|
|
-- Name: lti_parameters_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE SEQUENCE lti_parameters_id_seq
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
--
|
|
-- Name: lti_parameters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER SEQUENCE lti_parameters_id_seq OWNED BY lti_parameters.id;
|
|
|
|
|
|
--
|
|
-- Name: request_for_comments; Type: TABLE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE TABLE request_for_comments (
|
|
id integer NOT NULL,
|
|
user_id integer NOT NULL,
|
|
exercise_id integer NOT NULL,
|
|
file_id integer NOT NULL,
|
|
created_at timestamp without time zone,
|
|
updated_at timestamp without time zone,
|
|
user_type character varying(255),
|
|
question text,
|
|
solved boolean,
|
|
submission_id integer
|
|
);
|
|
|
|
|
|
--
|
|
-- Name: request_for_comments_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE SEQUENCE request_for_comments_id_seq
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
--
|
|
-- Name: request_for_comments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER SEQUENCE request_for_comments_id_seq OWNED BY request_for_comments.id;
|
|
|
|
|
|
--
|
|
-- Name: schema_migrations; Type: TABLE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE TABLE schema_migrations (
|
|
version character varying NOT NULL
|
|
);
|
|
|
|
|
|
--
|
|
-- Name: submissions; Type: TABLE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE TABLE submissions (
|
|
id integer NOT NULL,
|
|
exercise_id integer,
|
|
score double precision,
|
|
user_id integer,
|
|
created_at timestamp without time zone,
|
|
updated_at timestamp without time zone,
|
|
cause character varying(255),
|
|
user_type character varying(255)
|
|
);
|
|
|
|
|
|
--
|
|
-- Name: submissions_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE SEQUENCE submissions_id_seq
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
--
|
|
-- Name: submissions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER SEQUENCE submissions_id_seq OWNED BY submissions.id;
|
|
|
|
|
|
--
|
|
-- Name: teams; Type: TABLE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE TABLE teams (
|
|
id integer NOT NULL,
|
|
name character varying,
|
|
created_at timestamp without time zone,
|
|
updated_at timestamp without time zone
|
|
);
|
|
|
|
|
|
--
|
|
-- Name: teams_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE SEQUENCE teams_id_seq
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
--
|
|
-- Name: teams_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER SEQUENCE teams_id_seq OWNED BY teams.id;
|
|
|
|
|
|
--
|
|
-- Name: testruns; Type: TABLE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE TABLE testruns (
|
|
id integer NOT NULL,
|
|
passed boolean,
|
|
output text,
|
|
file_id integer,
|
|
submission_id integer,
|
|
created_at timestamp without time zone,
|
|
updated_at timestamp without time zone
|
|
);
|
|
|
|
|
|
--
|
|
-- Name: testruns_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE SEQUENCE testruns_id_seq
|
|
START WITH 1
|
|
INCREMENT BY 1
|
|
NO MINVALUE
|
|
NO MAXVALUE
|
|
CACHE 1;
|
|
|
|
|
|
--
|
|
-- Name: testruns_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER SEQUENCE testruns_id_seq OWNED BY testruns.id;
|
|
|
|
|
|
--
|
|
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY code_harbor_links ALTER COLUMN id SET DEFAULT nextval('code_harbor_links_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY comments ALTER COLUMN id SET DEFAULT nextval('comments_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY consumers ALTER COLUMN id SET DEFAULT nextval('consumers_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY errors ALTER COLUMN id SET DEFAULT nextval('errors_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY execution_environments ALTER COLUMN id SET DEFAULT nextval('execution_environments_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY exercises ALTER COLUMN id SET DEFAULT nextval('exercises_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY external_users ALTER COLUMN id SET DEFAULT nextval('external_users_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY file_templates ALTER COLUMN id SET DEFAULT nextval('file_templates_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY file_types ALTER COLUMN id SET DEFAULT nextval('file_types_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY files ALTER COLUMN id SET DEFAULT nextval('files_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY hints ALTER COLUMN id SET DEFAULT nextval('hints_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY internal_users ALTER COLUMN id SET DEFAULT nextval('internal_users_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY internal_users_teams ALTER COLUMN id SET DEFAULT nextval('internal_users_teams_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY lti_parameters ALTER COLUMN id SET DEFAULT nextval('lti_parameters_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY request_for_comments ALTER COLUMN id SET DEFAULT nextval('request_for_comments_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY submissions ALTER COLUMN id SET DEFAULT nextval('submissions_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY teams ALTER COLUMN id SET DEFAULT nextval('teams_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- Name: id; Type: DEFAULT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY testruns ALTER COLUMN id SET DEFAULT nextval('testruns_id_seq'::regclass);
|
|
|
|
|
|
--
|
|
-- Name: code_harbor_links_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY code_harbor_links
|
|
ADD CONSTRAINT code_harbor_links_pkey PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- Name: comments_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY comments
|
|
ADD CONSTRAINT comments_pkey PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- Name: consumers_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY consumers
|
|
ADD CONSTRAINT consumers_pkey PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- Name: errors_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY errors
|
|
ADD CONSTRAINT errors_pkey PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- Name: execution_environments_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY execution_environments
|
|
ADD CONSTRAINT execution_environments_pkey PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- Name: exercises_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY exercises
|
|
ADD CONSTRAINT exercises_pkey PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- Name: external_users_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY external_users
|
|
ADD CONSTRAINT external_users_pkey PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- Name: file_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY file_templates
|
|
ADD CONSTRAINT file_templates_pkey PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- Name: file_types_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY file_types
|
|
ADD CONSTRAINT file_types_pkey PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- Name: files_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY files
|
|
ADD CONSTRAINT files_pkey PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- Name: hints_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY hints
|
|
ADD CONSTRAINT hints_pkey PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- Name: internal_users_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY internal_users
|
|
ADD CONSTRAINT internal_users_pkey PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- Name: internal_users_teams_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY internal_users_teams
|
|
ADD CONSTRAINT internal_users_teams_pkey PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- Name: lti_parameters_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY lti_parameters
|
|
ADD CONSTRAINT lti_parameters_pkey PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- Name: request_for_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY request_for_comments
|
|
ADD CONSTRAINT request_for_comments_pkey PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- Name: submissions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY submissions
|
|
ADD CONSTRAINT submissions_pkey PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- Name: teams_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY teams
|
|
ADD CONSTRAINT teams_pkey PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- Name: testruns_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
--
|
|
|
|
ALTER TABLE ONLY testruns
|
|
ADD CONSTRAINT testruns_pkey PRIMARY KEY (id);
|
|
|
|
|
|
--
|
|
-- Name: index_code_harbor_links_on_user_id; Type: INDEX; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE INDEX index_code_harbor_links_on_user_id ON code_harbor_links USING btree (user_id);
|
|
|
|
|
|
--
|
|
-- Name: index_comments_on_file_id; Type: INDEX; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE INDEX index_comments_on_file_id ON comments USING btree (file_id);
|
|
|
|
|
|
--
|
|
-- Name: index_comments_on_user_id; Type: INDEX; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE INDEX index_comments_on_user_id ON comments USING btree (user_id);
|
|
|
|
|
|
--
|
|
-- Name: index_errors_on_submission_id; Type: INDEX; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE INDEX index_errors_on_submission_id ON errors USING btree (submission_id);
|
|
|
|
|
|
--
|
|
-- Name: index_files_on_context_id_and_context_type; Type: INDEX; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE INDEX index_files_on_context_id_and_context_type ON files USING btree (context_id, context_type);
|
|
|
|
|
|
--
|
|
-- Name: index_internal_users_on_activation_token; Type: INDEX; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE INDEX index_internal_users_on_activation_token ON internal_users USING btree (activation_token);
|
|
|
|
|
|
--
|
|
-- Name: index_internal_users_on_email; Type: INDEX; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE UNIQUE INDEX index_internal_users_on_email ON internal_users USING btree (email);
|
|
|
|
|
|
--
|
|
-- Name: index_internal_users_on_remember_me_token; Type: INDEX; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE INDEX index_internal_users_on_remember_me_token ON internal_users USING btree (remember_me_token);
|
|
|
|
|
|
--
|
|
-- Name: index_internal_users_on_reset_password_token; Type: INDEX; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE INDEX index_internal_users_on_reset_password_token ON internal_users USING btree (reset_password_token);
|
|
|
|
|
|
--
|
|
-- Name: index_internal_users_teams_on_internal_user_id; Type: INDEX; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE INDEX index_internal_users_teams_on_internal_user_id ON internal_users_teams USING btree (internal_user_id);
|
|
|
|
|
|
--
|
|
-- Name: index_internal_users_teams_on_team_id; Type: INDEX; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE INDEX index_internal_users_teams_on_team_id ON internal_users_teams USING btree (team_id);
|
|
|
|
|
|
--
|
|
-- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: -
|
|
--
|
|
|
|
CREATE UNIQUE INDEX unique_schema_migrations ON schema_migrations USING btree (version);
|
|
|
|
|
|
--
|
|
-- PostgreSQL database dump complete
|
|
--
|
|
|
|
SET search_path TO "$user", public;
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140625134118');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140626143132');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140626144036');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140630093736');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140630111215');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140701120126');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140701122345');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140702100130');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140703070749');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140716153147');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140717074902');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140722125431');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140723135530');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140723135747');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140724155359');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140730114343');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140730115010');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140805161431');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140812102114');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140812144733');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140812150607');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140812150925');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140813091722');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140820170039');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140821064318');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140823172643');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140823173923');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140825121336');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140825125801');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140825154202');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140825161350');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140825161358');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140825161406');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140826073318');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140826073319');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140826073320');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140826073321');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140826073322');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140827065359');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140827083957');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140829141913');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140903093436');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140903165113');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140904082810');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140909115430');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140915095420');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140915122846');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140918063522');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140922161120');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20140922161226');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20141003072729');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20141004114747');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20141009110434');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20141011145303');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20141017110211');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20141031161603');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20141119131607');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20150128083123');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20150128084834');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20150128093003');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20150204080832');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20150310150712');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20150317083739');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20150317115338');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20150327141740');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20150408155923');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20150421074734');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20150818141554');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20150818142251');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20150903152727');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20150922125415');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20160204094409');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20160204111716');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20160302133540');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20160426114951');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20160510145341');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20160512131539');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20160609185708');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20160610111602');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20160624130951');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20160630154310');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20160701092140');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20160704143402');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20160907123009');
|
|
|
|
INSERT INTO schema_migrations (version) VALUES ('20161214144837');
|
|
|