Open jyecusch opened 10 months ago
Would this integration also have a mechanism for migrations?
Current preview implementation for AWS available at: https://github.com/nitrictech/nitric/pull/613
@chimon2000 This does include a migration mechanism at the moment. This comes in two flavors.
import { sql } from "@nitric/sdk";
const myDatabase = sql("my-db", {
// Use a migrations folder relative to the nitric.yaml
migrations: "file:///migrations/"
});
import { sql } from "@nitric/sdk";
const myDatabase = sql("my-db", {
// Use a dockerfile relative to the nitric.yaml
migrations: "dockerfile:///migrations.dockerfile"
});
migrations
In the case of Option 1, how would Nitric use the migrations folder?
@chimon2000 apologies for the late reply. The migrations folder uses https://github.com/golang-migrate/migrate by default in our preview release, we'll build a default migration image in the case where a migrations directory is given using that tool.
Support deployment of Relational SQL databases in Nitric apps. Initial support will focus on Postgres databases.