Commit f518c79b authored by Selvakumar Kamatchinathan's avatar Selvakumar Kamatchinathan
Browse files

create table if not exists

parent 1a85862c
......@@ -40,7 +40,6 @@ import java.time.ZonedDateTime;
public class Phenotype implements IdentifiableEntity<String> {
public enum Group {
ANTHROPOMETRIC,
CARDIOVASCULAR,
GLYCEMIC,
......@@ -50,7 +49,6 @@ public class Phenotype implements IdentifiableEntity<String> {
}
public enum Type {
DICHOTOMOUS,
MULTICHOTOMOUS,
CONTINUOUS
......
CREATE TABLE phenotype (
CREATE TABLE IF NOT EXISTS phenotype (
id VARCHAR(255) NOT NULL,
allowed_values VARCHAR(255) NOT NULL,
created_date TIMESTAMP,
......@@ -8,7 +8,7 @@ CREATE TABLE phenotype (
type VARCHAR(255) NOT NULL,
PRIMARY KEY (id)
);
CREATE TABLE property (
CREATE TABLE IF NOT EXISTS property (
id VARCHAR(255) NOT NULL,
created_date TIMESTAMP,
description TEXT NOT NULL,
......@@ -17,7 +17,7 @@ CREATE TABLE property (
type VARCHAR(255) NOT NULL,
PRIMARY KEY (id)
);
CREATE TABLE registry_user (
CREATE TABLE IF NOT EXISTS registry_user (
email VARCHAR(255) NOT NULL,
role VARCHAR(255),
PRIMARY KEY (email)
......
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