Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Selvakumar Kamatchinathan
amp-t2d-property-registry
Commits
f518c79b
Commit
f518c79b
authored
Mar 27, 2019
by
Selvakumar Kamatchinathan
Browse files
create table if not exists
parent
1a85862c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
src/main/java/uk/ac/ebi/ampt2d/registry/entities/Phenotype.java
...in/java/uk/ac/ebi/ampt2d/registry/entities/Phenotype.java
+0
-2
src/main/resources/schema.sql
src/main/resources/schema.sql
+3
-3
No files found.
src/main/java/uk/ac/ebi/ampt2d/registry/entities/Phenotype.java
View file @
f518c79b
...
...
@@ -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
...
...
src/main/resources/schema.sql
View file @
f518c79b
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment