Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Database Stuffs #27

Merged
merged 1 commit into from

2 participants

@eastebry

Fixed syntax error in tables.sql. Created database with new schema. Still need to populate database

@UWOneLaptop UWOneLaptop merged commit 3f1f341 into UWOneLaptop:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 4, 2012
  1. @eastebry

    Made the database and fixed a syntax error in the tables.sql. Table s…

    eastebry authored
    …till
    
    needs to be populated.
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 5 deletions.
  1. BIN  database/QandA.db
  2. +7 −5 database/tables.sql
View
BIN  database/QandA.db
Binary file not shown
View
12 database/tables.sql
@@ -1,10 +1,12 @@
-CREATE TABLE Answers (q_id INTEGER, a_text TEXT,
+CREATE TABLE Answers (q_id INTEGER, a_text TEXT,
valid INTEGER,
FOREIGN KEY (q_id) REFERENCES Questions (q_id));
+
CREATE TABLE Countries (c_id INTEGER,
- UNIQUE c_name TEXT,
- PRIMARY KEY (c_id));
+ c_name TEXT,
+ PRIMARY KEY (c_id)
+ UNIQUE(c_name));
CREATE TABLE Questions (
@@ -16,8 +18,8 @@ PRIMARY KEY (q_id));
CREATE TABLE Question_Tags (q_id INTEGER,
- tag TEXT,
- FOREIGN KEY (q_id) REFERENCES Questions (q_id));
+ tag TEXT,
+FOREIGN KEY (q_id) REFERENCES Questions (q_id));
CREATE TABLE Country_Tags (c_id INTEGER, tag TEXT,
Something went wrong with that request. Please try again.