Skip to content

allow stub templates #90

@pbrink231

Description

@pbrink231

I have seen in other migration cli's the use of stubs which are really nice.

I am thinking a command like
npx kysely migrate:stub {stub_name} {migration_name}

Would need to add a stubsFolder option under migrations option in the config file

Then I could have a folder called whatever I want with file names like: my_stub_file.stub. This file would be just like your template file in your src->templates folder.

When the migration is created it will use the stub file as the template, name the file as it does now and use the correct extension.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestmigrateMigrate module relatedseedSeed module related

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions