diff --git a/db/k8s/migrations/atlas-job.yaml b/db/k8s/migrations/stripe-to-invoice-dev-migrate.yaml similarity index 90% rename from db/k8s/migrations/atlas-job.yaml rename to db/k8s/migrations/stripe-to-invoice-dev-migrate.yaml index 247e09c..f0e8384 100644 --- a/db/k8s/migrations/atlas-job.yaml +++ b/db/k8s/migrations/stripe-to-invoice-dev-migrate.yaml @@ -1,7 +1,7 @@ apiVersion: batch/v1 kind: Job metadata: - name: atlas-migrate + name: atlas-migrate-dev spec: template: spec: @@ -9,12 +9,14 @@ spec: containers: - name: atlas image: arigaio/atlas:latest - command: ["atlas", "migrate", "apply", "--env", "stripe_invoice"] + command: ["atlas", "migrate", "apply", "--env", "stripe_invoice_dev"] envFrom: - secretRef: name: postgres-secret + + # You can run this: # kubectl apply -f k8s/migrations/atlas-job.yaml # Or later from CI. \ No newline at end of file diff --git a/db/k8s/migrations/stripe-to-invoice-prod-migrate copy.yaml b/db/k8s/migrations/stripe-to-invoice-prod-migrate copy.yaml new file mode 100644 index 0000000..728da8e --- /dev/null +++ b/db/k8s/migrations/stripe-to-invoice-prod-migrate copy.yaml @@ -0,0 +1,22 @@ +apiVersion: batch/v1 +kind: Job +metadata: + name: atlas-migrate-dev +spec: + template: + spec: + restartPolicy: Never + containers: + - name: atlas + image: arigaio/atlas:latest + command: ["atlas", "migrate", "apply", "--env", "stripe_invoice_prod"] + envFrom: + - secretRef: + name: postgres-secret + + + + +# You can run this: +# kubectl apply -f k8s/migrations/atlas-job.yaml +# Or later from CI. \ No newline at end of file diff --git a/db/scripts/backup.sh b/db/scripts/backup.sh deleted file mode 100644 index e69de29..0000000 diff --git a/db/scripts/migrate.sh b/db/scripts/migrate.sh deleted file mode 100644 index e69de29..0000000