-
Notifications
You must be signed in to change notification settings - Fork 370
Expand file tree
/
Copy path0005_querychangelog.py
More file actions
31 lines (26 loc) · 1.16 KB
/
0005_querychangelog.py
File metadata and controls
31 lines (26 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2022-03-25 05:46
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('explorer', '0004_querylog_duration'),
]
operations = [
migrations.CreateModel(
name='QueryChangeLog',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('old_sql', models.TextField(blank=True, null=True)),
('new_sql', models.TextField(blank=True, null=True)),
('run_at', models.DateTimeField(auto_now_add=True)),
('query', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='explorer.Query')),
('run_by_user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
options={
'ordering': ['-run_at'],
},
),
]