Skip to content

Commit fdbc2bd

Browse files
change name of migrate command
1 parent 82111ef commit fdbc2bd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

framework/components/dockercompose/billing_platform_service/billing_platform_service.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ import (
88
"github.com/docker/docker/client"
99
"github.com/docker/go-connections/nat"
1010
"github.com/pkg/errors"
11-
"github.com/smartcontractkit/chainlink-testing-framework/framework"
12-
"github.com/smartcontractkit/chainlink-testing-framework/framework/components/dockercompose/utils"
1311
"github.com/testcontainers/testcontainers-go"
1412
"github.com/testcontainers/testcontainers-go/modules/compose"
1513
"github.com/testcontainers/testcontainers-go/wait"
14+
15+
"github.com/smartcontractkit/chainlink-testing-framework/framework"
16+
"github.com/smartcontractkit/chainlink-testing-framework/framework/components/dockercompose/utils"
1617
)
1718

1819
const DefaultPostgresDSN = "postgres://postgres:postgres@postgres:5432/billing_platform"

framework/components/dockercompose/billing_platform_service/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ services:
5757
image: ${BILLING_PLATFORM_SERVICE_IMAGE:-billing-platform-service:local-cre}
5858
container_name: db-migrations-billing-platform
5959
restart: on-failure
60-
command: ["db", "migrate", "--url=${DATABASE_URL}"]
60+
command: ["db", "create-and-migrate", "--url=${DATABASE_URL}"]
6161
environment:
6262
DATABASE_URL: postgres://postgres:postgres@postgres:postgres/billing_platform
6363
networks:

0 commit comments

Comments
 (0)