Skip to content

Model generator#6

Merged
PenguinBoi12 merged 5 commits intomainfrom
model-generator
Apr 17, 2025
Merged

Model generator#6
PenguinBoi12 merged 5 commits intomainfrom
model-generator

Conversation

@PenguinBoi12
Copy link
Copy Markdown
Contributor

This PR introduces a generator for models and migrations, along with additional commands for managing database migrations.

New commands include:

  • generate model NAME [column_name:Type, ...] – Generates a model with the specified columns and their types. The migration is automatically generated as well.
  • generate migration MESSAGE – Generates a new migration.
  • db up [REVISION] – Applies database migrations up to the specified revision.
  • db down [REVISION] – Reverts database migrations to the specified revision.

Note: The generate model command will automatically generate a migration.

@PenguinBoi12 PenguinBoi12 merged commit 8543c35 into main Apr 17, 2025
2 checks passed
@PenguinBoi12 PenguinBoi12 deleted the model-generator branch April 17, 2025 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant