experiments
This commit is contained in:
35
experiments/migrations/0001_initial.py
Normal file
35
experiments/migrations/0001_initial.py
Normal file
@@ -0,0 +1,35 @@
|
||||
# Generated by Django 4.1.7 on 2023-09-23 15:45
|
||||
|
||||
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='Experiment',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.TextField()),
|
||||
('enabled', models.BooleanField(default=False)),
|
||||
('condition', models.TextField(default='False')),
|
||||
('stage', models.TextField(default='production')),
|
||||
('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='web.project')),
|
||||
],
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name='experiment',
|
||||
index=models.Index(fields=['project', 'stage'], name='experiments_project_e2c9f6_idx'),
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name='experiment',
|
||||
index=models.Index(fields=['project', 'name', 'stage'], name='experiments_project_dade49_idx'),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user