Skip to content

Commit

Permalink
postgres migration
Browse files Browse the repository at this point in the history
  • Loading branch information
feeelin committed Mar 14, 2024
1 parent f356f44 commit 0e6777b
Show file tree
Hide file tree
Showing 39 changed files with 13 additions and 96 deletions.
2 changes: 1 addition & 1 deletion .idea/dataSources.local.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

83 changes: 0 additions & 83 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified cinema/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file modified cinema/__pycache__/settings.cpython-311.pyc
Binary file not shown.
Binary file modified cinema/__pycache__/urls.cpython-311.pyc
Binary file not shown.
Binary file modified cinema/__pycache__/wsgi.cpython-311.pyc
Binary file not shown.
9 changes: 4 additions & 5 deletions cinema/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,11 @@

DATABASES = {
'default': {
'ENGINE': 'mssql',
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'cinema',
'USER': 'SA',
'PASSWORD': 'feelinMSSQL_2024',
'HOST': 'mssql.feelindev.ru',
'OPTIONS': {'driver': 'ODBC Driver 17 for SQL Server'}
'USER': 'admin',
'PASSWORD': 'admin',
'HOST': 'mssql.feelindev.ru'
}
}

Expand Down
15 changes: 8 additions & 7 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
version: '3'
services:

mssql:
image: mcr.microsoft.com/mssql/server:2019-latest
postgres:
image: postgres
ports:
- 1433:1433
- "1433:1433"
volumes:
- ~/apps/mssql/data:/var/lib/mssqlql/data
- /var/lib/postgresql/data
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=feelinMSSQL_2024
POSTGRES_DB: "cinema"
POSTGRES_USER: "admin"
POSTGRES_PASSWORD: "admin"

web:
build: ./
Expand All @@ -23,4 +24,4 @@ services:
- 8000
restart: "on-failure"
depends_on:
- mssql
- postgres
Binary file modified movies/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file modified movies/__pycache__/admin.cpython-311.pyc
Binary file not shown.
Binary file modified movies/__pycache__/apps.cpython-311.pyc
Binary file not shown.
Binary file modified movies/__pycache__/models.cpython-311.pyc
Binary file not shown.
Binary file modified movies/__pycache__/urls.cpython-311.pyc
Binary file not shown.
Binary file modified movies/__pycache__/views.cpython-311.pyc
Binary file not shown.
Binary file modified movies/migrations/__pycache__/0001_initial.cpython-311.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified movies/migrations/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file not shown.
Binary file modified tickets/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file modified tickets/__pycache__/admin.cpython-311.pyc
Binary file not shown.
Binary file modified tickets/__pycache__/apps.cpython-311.pyc
Binary file not shown.
Binary file modified tickets/__pycache__/models.cpython-311.pyc
Binary file not shown.
Binary file modified tickets/__pycache__/urls.cpython-311.pyc
Binary file not shown.
Binary file modified tickets/migrations/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file modified users/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file modified users/__pycache__/admin.cpython-311.pyc
Binary file not shown.
Binary file modified users/__pycache__/apps.cpython-311.pyc
Binary file not shown.
Binary file modified users/__pycache__/forms.cpython-311.pyc
Binary file not shown.
Binary file modified users/__pycache__/models.cpython-311.pyc
Binary file not shown.
Binary file modified users/__pycache__/urls.cpython-311.pyc
Binary file not shown.
Binary file modified users/__pycache__/views.cpython-311.pyc
Binary file not shown.
Binary file modified users/migrations/__pycache__/0001_initial.cpython-311.pyc
Binary file not shown.
Binary file modified users/migrations/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file modified users/services/__pycache__/login_user.cpython-311.pyc
Binary file not shown.
Binary file modified users/services/__pycache__/logout_user.cpython-311.pyc
Binary file not shown.
Binary file modified users/services/__pycache__/register_new_user.cpython-311.pyc
Binary file not shown.
Binary file modified users/services/__pycache__/update_user_profile.cpython-311.pyc
Binary file not shown.

0 comments on commit 0e6777b

Please sign in to comment.