-
Notifications
You must be signed in to change notification settings - Fork 181
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 using shorthand types in other shorthands #343
Comments
Hmm, it can be to complicated and can lead to cyclic definition. const ref = {type: `integer`, onDelete: `cascade`}
exports.shorthands = {
ref,
user: { ...ref, references: `users`},
} |
If I submitted a PR that checked for a cyclic definition would you consider it? |
Sure, you can look on it :) |
Got some time to look on it ;-) |
Oh wow, that was fast. I'm used to tickets lasting for a little while. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For example:
This also currently doesn't work if the shorthand was defined in an earlier migration file.
The text was updated successfully, but these errors were encountered: