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

Add option to disable unique rule #21

Open
CamilleScholtz opened this issue Apr 7, 2023 · 0 comments
Open

Add option to disable unique rule #21

CamilleScholtz opened this issue Apr 7, 2023 · 0 comments

Comments

@CamilleScholtz
Copy link

I'm using https://github.com/calebporzio/sushi to make my eloquent models interact with markdown files. There is no real database to speak of, as such the unique rule fails because it tries to run an SQL query. An option to disable, or to explicitly set, the unique rule would be nice.

Error in question:

SQLSTATE[HY000]: General error: 1 no such table: articles (Connection: App\Models\Article, SQL: select count(*) as aggregate from "articles" where "title" = Hoe polarisatie het vrije denken vernietigt and "articles"."id" <> hoe-polarisatie-het-vrije-denken-vernietigt)
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

No branches or pull requests

1 participant