typeorm-migration tool is used to generate, apply and revert database migrations. It follows the conventions below.
- The migrations are generated in the
db/migrationsfolder. - The database connection is inferred from the
DB_XXXenvironment variables. - All entities should be exported from
lib/modelcommonjs module, i.e. the entity classes must be compiled from TypeScript.
@subsquid/[email protected], generate -n <name> accepts a custom suffix. The create command does not accept a name value: passing its --name flag creates a true suffix instead. Run create without arguments.