Skip to content

Layer authoring schema generation #845

@BlueBazze

Description

@BlueBazze

Is your feature request related to a problem? Please describe.
When authoring nuxt layers with nuxthub, and creating schemas for multiple db variants. It is "somewhat" cumbersome to generate migrations for the different variants.

Describe the solution you'd like
An arg on the generate command that if specified generates the migrations for the specified db variant.

--variant sqlite
--variant mysql
--variant postgresql
--variant all

Describe alternatives you've considered
Considered creating a bun script that automates the generation by looping through each variant by changing the env variable for the db type:
bun i -> nuxt prepare -> nuxt db generate -> delete node_modules -> loop next variant

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions