Skip to content

Commit 6f4fdf6

Browse files
committed
Remove database migration hack in favor of separate service databases
Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
1 parent 157dd31 commit 6f4fdf6

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

tools/docker/kratos_image/Dockerfile

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,6 @@ RUN git clone --depth 1 https://github.com/ory/kratos.git
3131
WORKDIR /src/kratos
3232
RUN git fetch --tags && git checkout $KRATOS_VERSION
3333

34-
# The hydra and kratos migrations attempt to create the same table.
35-
# Kratos's migration only creates the table while hydra's migration creates the table
36-
# and inserts a row. Therefore, we replace kratos's problematic version with empty placeholders
37-
# to avoid a conflict. Removing the problematic migration file prior to module initialization and
38-
# compilation did not work.
39-
RUN for file in persistence/sql/migrations/sql/20150100000001000000_networks.*.sql; do echo "-- Migration disabled to avoid conflict with hydra" > "$file"; done
40-
4134
ENV GO111MODULE=on
4235
# kratos and hydra require CGO if sqlite is used, but we exclusively use postgres
4336
ENV CGO_ENABLED=0

0 commit comments

Comments
 (0)