brash-hamburger-57986
07/20/2022, 3:30 AMkratos migrate sql
do exactly? https://www.ory.sh/docs/kratos/cli/kratos-migrate-sql
the doc says "Create SQL schemas and apply migration plans"
so let's say we are upgrading kratos, which is already connected with a db. 1. in this upgrade scenario, is it going to create a new SQL schema in the existing db, what schema it's going to create? 2. what migration plans it's going to apply here? it seems the migration plan is auto-generated by Kratos and user doesn't need to supply the migration plan
sorry if the answer is too obvious, appreciate any help. thanks in advance!steep-lamp-91158
steep-lamp-91158
steep-lamp-91158
brash-hamburger-57986
07/20/2022, 3:55 PMextraInitContainers
in a helm values file:
deployment:
extraInitContainers:
- name: kratos-automigrate
image: "oryd/kratos:v0.9.0-alpha.3"
imagePullPolicy: IfNotPresent
command: ["kratos"]
args:
[
"migrate",
"sql",
"-e",
"--yes",
"--config",
"/etc/config/kratos.yaml",
]
volumeMounts:
- name: kratos-config-volume
mountPath: /etc/config
readOnly: true
...
if i set autoMigrate
as true
do i still need this part?
i suppose this specific config and autoMigrate
will do the same things - creating sql schemas, but here it passes in --config kratos.yaml
, if i enable autoMigrate
, it will automatically pick up kratos.config
defined in the helm values file right?steep-lamp-91158
brash-hamburger-57986
07/20/2022, 4:35 PM