Skip to content

Commit 2c3078d

Browse files
authored
Merge pull request #2 from bldrvnlw/master
Switch DB names to lower case for consistency with other examples
2 parents 486a268 + 6048236 commit 2c3078d

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

sql/V1_2__iris.sql

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

22
CREATE TABLE IRIS
33
(
4-
"Name" varchar(20),
5-
"SepalLength" numeric,
6-
"SepalWidth" numeric,
7-
"PetalLength" numeric,
8-
"PetalWidth" numeric
4+
"name" varchar(20),
5+
"sepal_length" numeric,
6+
"sepal_width" numeric,
7+
"petal_length" numeric,
8+
"petal_width" numeric
99
);

sql/iris.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SepalLength,SepalWidth,PetalLength,PetalWidth,Name
1+
sepal_length,sepal_width,petal_length,petal_width,name
22
5.1,3.5,1.4,0.2,Iris-setosa
33
4.9,3.0,1.4,0.2,Iris-setosa
44
4.7,3.2,1.3,0.2,Iris-setosa

src/main/java/eu/humanbrainproject/mip/migrations/iris_columns.properties

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
# Name of the target table
44
__TABLE=iris
55
# Columns of the table
6-
__COLUMNS=Name,SepalLength,SepalWidth,PetalLength,PetalWidth
6+
__COLUMNS=name,sepal_length,sepal_width,petal_length,petal_width
77

88
# Description of the type and constraints for each column in the table
9-
Name.type=varchar(20)
10-
SepalLength.type=numeric
11-
SepalWidth.type=numeric
12-
PetalLength.type=numeric
13-
PetalWidth.type=numeric
9+
name.type=varchar(20)
10+
sepal_length.type=numeric
11+
sepal_width.type=numeric
12+
petal_length.type=numeric
13+
petal_width.type=numeric
1414

tests/sql/testSchema.sql

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ SELECT has_column( 'churn', 'churn' );
2626

2727
SELECT has_table( 'iris' );
2828

29-
SELECT has_column( 'iris', 'Name' );
30-
SELECT has_column( 'iris', 'SepalLength' );
31-
SELECT has_column( 'iris', 'SepalWidth' );
32-
SELECT has_column( 'iris', 'PetalLength' );
33-
SELECT has_column( 'iris', 'PetalWidth' );
29+
SELECT has_column( 'iris', 'name' );
30+
SELECT has_column( 'iris', 'sepal_length' );
31+
SELECT has_column( 'iris', 'sepal_width' );
32+
SELECT has_column( 'iris', 'petal_length' );
33+
SELECT has_column( 'iris', 'petal_width' );
3434

3535
-- Clean up
3636
SELECT * FROM finish();

0 commit comments

Comments
 (0)