Commit 8a5c14ff authored by amgn1's avatar amgn1
Browse files

feat: migrate from sqlite3 to postgres

No related merge requests found
Showing with 117702 additions and 4 deletions
+117702 -4
This diff is collapsed.
This diff is collapsed.
# Generated by Django 4.1.6 on 2023-04-28 03:33
# Generated by Django 4.1.6 on 2023-05-08 14:10
import appform.models
import appform.validators
......@@ -33,6 +33,7 @@ class Migration(migrations.Migration):
('comment', models.CharField(blank=True, max_length=500, null=True, verbose_name='Комментарий к заявке')),
('status', models.CharField(choices=[('На рассмотрении', 'На рассмотрении'), ('В обработке', 'В обработке'), ('В работе', 'В работе'), ('Ожидает получения', 'Ожидает получения'), ('Отклонен', 'Отклонен'), ('Выполнен', 'Выполнен')], default='На рассмотрении', max_length=30, verbose_name='Статус заказа')),
('time_created', models.DateTimeField(auto_now_add=True, verbose_name='Время создания')),
('status_changed', models.BooleanField(default=False)),
('user', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL, verbose_name='Пользователь')),
],
options={
......
No preview for this file type
# Generated by Django 4.1.6 on 2023-05-08 14:09
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='TgUser',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('number', models.CharField(max_length=100)),
('user', models.CharField(max_length=100)),
('order', models.CharField(default='Нет', max_length=3)),
('user_id', models.CharField(max_length=300)),
],
),
]
File deleted
ajdhcksdcvkdsvsk
\ No newline at end of file
ajdhcksdcvkdsvsk
\ No newline at end of file
# Generated by Django 4.1.6 on 2023-04-28 03:40
# Generated by Django 4.1.6 on 2023-05-08 14:10
from django.db import migrations, models
import oauth.managers
......
......@@ -86,10 +86,21 @@ WSGI_APPLICATION = 'req3d.wsgi.application'
# Database
# https://docs.djangoproject.com/en/4.1/ref/settings/#databases
# DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.sqlite3',
# 'NAME': BASE_DIR / 'db.sqlite3',
# }
# }
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'django_db1',
'USER': 'postgres',
'PASSWORD': 'django_admin',
'HOST': 'localhost',
'PORT': '5432',
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment