diff --git a/persistence-modules/spring-boot-persistence/src/main/resources/schema.sql b/persistence-modules/spring-boot-persistence/src/main/resources/schema.sql index 4cfc8a7927..296d319b33 100644 --- a/persistence-modules/spring-boot-persistence/src/main/resources/schema.sql +++ b/persistence-modules/spring-boot-persistence/src/main/resources/schema.sql @@ -1,5 +1,6 @@ drop table if exists USERS; drop table if exists country; +drop table if exists BOOK; create table USERS( ID int not null AUTO_INCREMENT, @@ -12,4 +13,10 @@ CREATE TABLE country ( id INTEGER NOT NULL AUTO_INCREMENT, name VARCHAR(128) NOT NULL, PRIMARY KEY (id) -); \ No newline at end of file +); + +create table BOOK( + ID int not null AUTO_INCREMENT, + NAME varchar(128) not null, + PRIMARY KEY ( ID ) +); diff --git a/persistence-modules/spring-boot-persistence/src/test/resources/application.properties b/persistence-modules/spring-boot-persistence/src/test/resources/application.properties index 559522ddbc..07101ca2f5 100644 --- a/persistence-modules/spring-boot-persistence/src/test/resources/application.properties +++ b/persistence-modules/spring-boot-persistence/src/test/resources/application.properties @@ -12,5 +12,5 @@ hibernate.cache.use_second_level_cache=true hibernate.cache.use_query_cache=true hibernate.cache.region.factory_class=org.hibernate.cache.ehcache.EhCacheRegionFactory -#spring.jpa.properties.hibernate.hbm2ddl.import_files=import_active_users.sql,import_inactive_users.sql +spring.jpa.properties.hibernate.hbm2ddl.import_files=import_books.sql spring.datasource.data=import_*_users.sql \ No newline at end of file