File tree Expand file tree Collapse file tree 2 files changed +80
-0
lines changed Expand file tree Collapse file tree 2 files changed +80
-0
lines changed Original file line number Diff line number Diff line change 1+ # Generated by Django 5.1.2 on 2024-11-04 07:50
2+
3+ import django .db .models .deletion
4+ import django .utils .timezone
5+ from django .conf import settings
6+ from django .db import migrations , models
7+
8+
9+ class Migration (migrations .Migration ):
10+ dependencies = [
11+ ('patchwork' , '0047_add_database_indexes' ),
12+ migrations .swappable_dependency (settings .AUTH_USER_MODEL ),
13+ ]
14+
15+ operations = [
16+ migrations .CreateModel (
17+ name = 'Note' ,
18+ fields = [
19+ (
20+ 'id' ,
21+ models .AutoField (
22+ auto_created = True ,
23+ primary_key = True ,
24+ serialize = False ,
25+ verbose_name = 'ID' ,
26+ ),
27+ ),
28+ (
29+ 'created_at' ,
30+ models .DateTimeField (default = django .utils .timezone .now ),
31+ ),
32+ (
33+ 'updated_at' ,
34+ models .DateTimeField (default = django .utils .timezone .now ),
35+ ),
36+ ('content' , models .TextField (blank = True )),
37+ ('maintainer_only' , models .BooleanField (default = True )),
38+ (
39+ 'patch' ,
40+ models .ForeignKey (
41+ on_delete = django .db .models .deletion .CASCADE ,
42+ related_name = 'notes' ,
43+ to = 'patchwork.patch' ,
44+ ),
45+ ),
46+ (
47+ 'submitter' ,
48+ models .ForeignKey (
49+ on_delete = django .db .models .deletion .CASCADE ,
50+ to = settings .AUTH_USER_MODEL ,
51+ ),
52+ ),
53+ ],
54+ options = {
55+ 'abstract' : False ,
56+ },
57+ ),
58+ ]
Original file line number Diff line number Diff line change 1+ # Generated by Django 5.1.2 on 2024-12-16 13:22
2+
3+ from django .db import migrations , models
4+
5+
6+ class Migration (migrations .Migration ):
7+ dependencies = [
8+ ('patchwork' , '0048_note' ),
9+ ]
10+
11+ operations = [
12+ migrations .AlterField (
13+ model_name = 'note' ,
14+ name = 'created_at' ,
15+ field = models .DateTimeField (auto_now_add = True ),
16+ ),
17+ migrations .AlterField (
18+ model_name = 'note' ,
19+ name = 'updated_at' ,
20+ field = models .DateTimeField (auto_now = True ),
21+ ),
22+ ]
You can’t perform that action at this time.
0 commit comments