Skip to content

Commit 4b5e720

Browse files
author
Karthik Raghunathan
committed
different flyway property
1 parent 6cc6d40 commit 4b5e720

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ If you're going to use a database, ensure you have a local `.env` file that read
2525

2626
```
2727
JDBC_DATABASE_URL=jdbc:postgresql://localhost:5432/java_database_name
28+
or in this case :
29+
export JDBC_DATABASE_URL=jdbc:postgresql://localhost:5432/ffacebook
2830
```
2931

3032
## Deploying to Heroku

src/main/resources/application.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ logging.level.org.springframework=INFO
99
spring.profiles.active=production
1010

1111
server.port=${PORT:5000}
12+
13+
14+
spring.flyway.baselineOnMigrate=true

src/main/resources/db/migration/V1__entry.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CREATE TABLE public.entry (
1+
CREATE TABLE entry (
22
id bigint NOT NULL,
33
created timestamp without time zone,
44
description character varying(255),

0 commit comments

Comments
 (0)