Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for adding and updating dynamic default values #80

Merged
merged 1 commit into from
Feb 26, 2025
Merged

Conversation

colodenn
Copy link
Member

@colodenn colodenn commented Feb 26, 2025

When updating or adding fields with expressions in the default values we need to re-create the tables.

This was landed in ronin-co/cli#60.


In ronin-co/compiler#144, we changed the behavior so that name and pluralName are no longer automatically regenerated when altering a model’s slug. Instead, we now set these values directly in the CLI. This PR resolves the resulting issue by ensuring that models receive the correct names after creating temporary tables.

This was landed in ronin-co/cli#59.


This PR adds the ability to change the idPrefix.

Furthermore I fixed a small bug where the prompt was shown when running ronin diff apply pathToYourSchema.

This was landed in ronin-co/cli#55.

@colodenn colodenn requested review from NuroDev and leo February 26, 2025 12:47
@colodenn colodenn self-assigned this Feb 26, 2025
Copy link

Released an experimental package:

bun add ronin@corny-ron-1099-experimental-108

This package will be removed after the pull request has been merged.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

@colodenn colodenn changed the title Bump cli Allow adding and updating fields with expressions in default values Feb 26, 2025
@colodenn colodenn marked this pull request as ready for review February 26, 2025 12:56
@leo leo changed the title Allow adding and updating fields with expressions in default values Allow for adding and updating dynamic default values Feb 26, 2025
@leo leo enabled auto-merge (squash) February 26, 2025 13:07
@leo leo merged commit 169d5ac into main Feb 26, 2025
5 checks passed
@leo leo deleted the corny/ron-1099 branch February 26, 2025 13:07
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.

3 participants