-
Notifications
You must be signed in to change notification settings - Fork 6
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
Change DB to SQL #963
Merged
Merged
Change DB to SQL #963
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This one will be adjusted in the future.
This model is close to the current mongo documents. However, it can be changed/adjusted to better fit a sql database.
There is no "!" used anymore in the entities.
Tries to connect to the database when the server starts. If it can't connect, it'll throw an error. If it can the SQLDatabaseModule ensures that a) the database exists (if not it gets created). b) the schema of the database matches the required one (if not it gets safely updated).
Those types are better suited for the job than the EventSubscriber because they allow easier conversion between encrypted string value and actual value stored in the property while using the correct types.
This lead to an "@>" being included in the generated SQL query.
Bugfix/change db to sql
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
📖 documentation
Improvements or additions to documentation
🚀 performance
Impacts performance
🗄 server
Issue is related to the sever
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🎫 Description
Changes the used database from a MongoDB to a MySQL database. More information can be found in #957.
🔒 Closes
🐛 Issues
-> This is only an issues for teams with exactly one student in it.