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

sqlite doesn't support enum #139

Closed
amirmehdi opened this issue May 18, 2020 · 3 comments · Fixed by #140
Closed

sqlite doesn't support enum #139

amirmehdi opened this issue May 18, 2020 · 3 comments · Fixed by #140
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@amirmehdi
Copy link

I used this jdl to import in a monolithic project.
https://github.com/jhipster/jdl-samples/blob/master/online-shop.jh

two issues occurred:

  1. wrong import in the category in category-model and category-entity . that's not important
  2. error in npm start occurred:
    Data type "enum" in category is not supported by "sqlite" database.

I solved this issue in development mode by this:
typeorm/typeorm#1414

I use 'simple-enum' in type field for @column

@ghost
Copy link

ghost commented May 18, 2020

Yes, there is already #74 related issue. You are the best!! Could you contribute with a Pull Request? it should be very nice :)

@ghost ghost added duplicate This issue or pull request already exists enhancement New feature or request labels May 18, 2020
@ghost
Copy link

ghost commented May 18, 2020

The import error is due to a recursive relationship:

relationship ManyToOne {
	Category{parent} to Category
}

ghost pushed a commit that referenced this issue May 18, 2020
@ghost ghost linked a pull request May 18, 2020 that will close this issue
@ghost ghost closed this as completed in #140 May 19, 2020
@ghost
Copy link

ghost commented May 19, 2020

I have just fixed the recursive import and adding new simple-enum type (merged by PR). Thanks.

@ghost ghost self-assigned this May 19, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant