diff --git a/databaseSchema/apikey.sql b/databaseSchema/apikey.sql index ec8353a..ca518a2 100644 --- a/databaseSchema/apikey.sql +++ b/databaseSchema/apikey.sql @@ -1,4 +1,4 @@ -CREATE TABLE apikey ( +CREATE TABLE IF NOT EXISTS apikey ( uid SERIAL PRIMARY KEY, name VARCHAR NOT NULL, timeCreated TIMESTAMP DEFAULT CURRENT_TIMESTAMP, diff --git a/databaseSchema/projects.sql b/databaseSchema/projects.sql index a140f99..fd62e9c 100644 --- a/databaseSchema/projects.sql +++ b/databaseSchema/projects.sql @@ -1,4 +1,4 @@ -CREATE TABLE projects ( +CREATE TABLE IF NOT EXISTS projects ( uid SERIAL PRIMARY KEY, name VARCHAR NOT NULL, "short-desc" VARCHAR NOT NULL, @@ -9,4 +9,3 @@ CREATE TABLE projects ( "tech-stack" TEXT[], cohort VARCHAR, topic TEXT[] -);