Skip to content

Commit 6ac2bcf

Browse files
committed
Add in missing drop table statements for databases that require it.
1 parent 8046171 commit 6ac2bcf

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

spring-data-jdbc/src/test/resources/org.springframework.data.jdbc.repository/JdbcRepositoryWithListsIntegrationTests-db2.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ DROP TABLE dummy_entity;
44
CREATE TABLE dummy_entity ( id BIGINT GENERATED BY DEFAULT AS IDENTITY ( START WITH 1 ) PRIMARY KEY, NAME VARCHAR(100));
55
CREATE TABLE element (id BIGINT GENERATED BY DEFAULT AS IDENTITY (START WITH 1) PRIMARY KEY, content VARCHAR(100), Dummy_Entity_key BIGINT, dummy_entity BIGINT);
66

7+
DROP TABLE root;
8+
DROP TABLE intermediate;
9+
DROP TABLE leaf;
10+
711
CREATE TABLE root
812
(
913
id BIGINT GENERATED BY DEFAULT AS IDENTITY ( START WITH 1 ) PRIMARY KEY

spring-data-jdbc/src/test/resources/org.springframework.data.jdbc.repository/JdbcRepositoryWithListsIntegrationTests-mssql.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ DROP TABLE IF EXISTS element;
33
CREATE TABLE dummy_entity ( id BIGINT IDENTITY PRIMARY KEY, NAME VARCHAR(100));
44
CREATE TABLE element (id BIGINT IDENTITY PRIMARY KEY, content VARCHAR(100), Dummy_Entity_key BIGINT,dummy_entity BIGINT);
55

6+
DROP TABLE IF EXISTS root;
7+
DROP TABLE IF EXISTS intermediate;
8+
DROP TABLE IF EXISTS leaf;
69
CREATE TABLE root
710
(
811
id BIGINT IDENTITY PRIMARY KEY

spring-data-jdbc/src/test/resources/org.springframework.data.jdbc.repository/JdbcRepositoryWithListsIntegrationTests-oracle.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ CREATE TABLE ELEMENT (
1313
DUMMY_ENTITY NUMBER
1414
);
1515

16+
DROP TABLE root;
17+
DROP TABLE intermediate;
18+
DROP TABLE leaf;
19+
1620
CREATE TABLE root
1721
(
1822
id NUMBER GENERATED BY DEFAULT ON NULL AS IDENTITY PRIMARY KEY

spring-data-jdbc/src/test/resources/org.springframework.data.jdbc.repository/JdbcRepositoryWithListsIntegrationTests-postgres.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ DROP TABLE dummy_entity;
33
CREATE TABLE dummy_entity ( id SERIAL PRIMARY KEY, NAME VARCHAR(100));
44
CREATE TABLE element (id SERIAL PRIMARY KEY, content VARCHAR(100),dummy_entity_key BIGINT, dummy_entity BIGINT);
55

6+
DROP TABLE root;
7+
DROP TABLE intermediate;
8+
DROP TABLE leaf;
69
CREATE TABLE root
710
(
811
id SERIAL PRIMARY KEY

0 commit comments

Comments
 (0)