bored-lawyer-76566
02/08/2024, 4:50 AMory_kratos-migrate:
depends_on:
- mariadb
container_name: "ory_kratos-migrate"
image: "oryd/kratos:v1.0.0"
restart: on-failure
environment:
- DSN=<mysql://ory>:<snipped>@tcp(mariadb:3306)/kratos?max_conns=20&max_idle_conns=4
- LOG_LEVEL=trace
command: --config /etc/config/kratos/config.yaml migrate sql -e --yes
volumes:
- "./ory/kratos/config.yaml:/etc/config/kratos/config.yaml"
Running this, however, there is a migration error:
error executing migrations/sql/20200317160354000002_create_profile_request_forms.mysql.up.sql, sql: INSERT INTO selfservice_profile_management_request_methods (id, method, selfservice_profile_management_request_id, config) SELECT id, 'traits', id, form FROM selfservice_profile_management_requests;: Error 1364 (HY000): Field 'created_at' doesn't have a default value
Has anyone experienced this? If so, how did you remedy it?bored-lawyer-76566
02/08/2024, 5:07 AM