Configuration - application.properties (spring.jpa.hibernate.ddl-auto):
Action | Description |
---|---|
none | No action will be performed |
create-only | Database tables are only created |
drop | Database tables are dropped |
create | Database tables are dropped followed by database tables creation |
create-drop | Database tables are dropped followed by database tables creation. On application shutdown, drop the database tables |
validate | Validate the database tables schema, does not change table |
update | Update the database tables schema |
spring.jpa.hibernate.ddl-auto=none
spring.jpa.hibernate.ddl-auto=create-only
spring.jpa.hibernate.ddl-auto=drop
spring.jpa.hibernate.ddl-auto=create
spring.jpa.hibernate.ddl-auto=create-drop
spring.jpa.hibernate.ddl-auto=validate
spring.jpa.hibernate.ddl-auto=update
Comments
Post a Comment