-
Notifications
You must be signed in to change notification settings - Fork 3
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
[E-64] Update the current state of the web application #104
Open
MrAmfix
wants to merge
12
commits into
development
Choose a base branch
from
E-64
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
35a2947
[feat]: Added alembic_helper, initial models and docker-compose for d…
MrAmfix 690f2f8
[feat]: moved backend to async version (test, not fully transferred)
MrAmfix 0872e59
[feat]: added new variations of schemas
MrAmfix 634be86
[feat]: Added new models
MrAmfix 3c54dd7
[feat]: Added updated_models.py
MrAmfix 0351129
[feat]: Added logger
MrAmfix 71b3fc6
[update]: Added token-table in updated_models
MrAmfix cbd4ee4
[update]: Removed init_models.py and Models-table
MrAmfix 03c8fa2
[fix]: Fixed incorrect version contourpy in requirements
MrAmfix 4cbfc91
Added event tables in updated_models
MrAmfix 1b81ec3
[fix]: Commented cropped_schemas in system_schemas
MrAmfix d760d49
[fix]: Updated postgres version in docker-compose
MrAmfix File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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 file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
alembic init -t async migration | ||
Прописываем в терминале эту команду и следуем инструкции: | ||
1) В alembic.ini меняем значение sqlalchemy.url на | ||
sqlalchemy.url = postgresql+asyncpg://edulytica:superstrongpassword@localhost:5432/edulytica | ||
2) В migration/env.py: | ||
1) from src.edulytica_api.models.init_models import Base | ||
2) Меняет target_metadate = Base.metadata | ||
В консоли пишем команды: | ||
alembic revision --autogenerate -m "Initial tables without relationships" | ||
alembic upgrade heads | ||
|
||
Заходим migration/env.py и меняем | ||
from src.models.models import Base | ||
В консоли пишем команды: | ||
alembic revision --autogenerate -m "Update tables" | ||
alembic upgrade heads |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: "3.9" | ||
|
||
services: | ||
edulytica_db: | ||
container_name: "EdulyticaDatabase" | ||
image: postgres:16-alpine | ||
restart: always | ||
environment: | ||
POSTGRES_USER: ${POSTGRES_USER} | ||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} | ||
POSTGRES_DB: ${POSTGRES_DB} | ||
ports: | ||
- "5443:5432" |
Binary file not shown.
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 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А для чего нужна эта директория?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test_folder там просто файлы для проверки работы некоторых функций или посылок запросов