configs
This commit is contained in:
33
configs/migrations/0001_initial.py
Normal file
33
configs/migrations/0001_initial.py
Normal file
@@ -0,0 +1,33 @@
|
||||
# Generated by Django 4.1.7 on 2023-09-23 13:56
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
('web', '0004_alter_customuser_vk_id_alter_customuser_yandex_id'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Config',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.TextField()),
|
||||
('data', models.JSONField(default=dict)),
|
||||
('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='web.project')),
|
||||
],
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name='config',
|
||||
index=models.Index(fields=['project'], name='configs_con_project_8236d6_idx'),
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name='config',
|
||||
index=models.Index(fields=['project', 'name'], name='configs_con_project_2e12ee_idx'),
|
||||
),
|
||||
]
|
18
configs/migrations/0002_config_stage.py
Normal file
18
configs/migrations/0002_config_stage.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 4.1.7 on 2023-09-23 14:51
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('configs', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='config',
|
||||
name='stage',
|
||||
field=models.TextField(default='production'),
|
||||
),
|
||||
]
|
@@ -0,0 +1,29 @@
|
||||
# Generated by Django 4.1.7 on 2023-09-23 14:57
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('configs', '0002_config_stage'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveIndex(
|
||||
model_name='config',
|
||||
name='configs_con_project_8236d6_idx',
|
||||
),
|
||||
migrations.RemoveIndex(
|
||||
model_name='config',
|
||||
name='configs_con_project_2e12ee_idx',
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name='config',
|
||||
index=models.Index(fields=['project', 'stage'], name='configs_con_project_19e8a6_idx'),
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name='config',
|
||||
index=models.Index(fields=['project', 'name', 'stage'], name='configs_con_project_a9e1de_idx'),
|
||||
),
|
||||
]
|
0
configs/migrations/__init__.py
Normal file
0
configs/migrations/__init__.py
Normal file
Reference in New Issue
Block a user