1- # Generated by Django 5.1.14 on 2026-02-07 07:47
1+ # Generated by Django 5.1.14 on 2026-01-24 06:27
22
33import django .db .models .deletion
4+ import django .db .models .functions .datetime
45from django .db import migrations , models
56
67
@@ -11,42 +12,12 @@ class Migration(migrations.Migration):
1112 ]
1213
1314 operations = [
14- migrations .CreateModel (
15- name = "Committee" ,
16- fields = [
17- (
18- "id" ,
19- models .OneToOneField (
20- on_delete = django .db .models .deletion .CASCADE ,
21- primary_key = True ,
22- serialize = False ,
23- to = "game_dev.member" ,
24- ),
25- ),
26- (
27- "role" ,
28- models .CharField (
29- choices = [
30- ("P" , "President" ),
31- ("VP" , "Vice-President" ),
32- ("SEC" , "Secretary" ),
33- ("TRE" , "Treasurer" ),
34- ("MARK" , "Marketing" ),
35- ("EV" , "Events OCM" ),
36- ("PRO" , "Projects OCM" ),
37- ("FRE" , "Fresher Rep" ),
38- ],
39- default = "FRE" ,
40- max_length = 9 ,
41- unique = True ,
42- ),
43- ),
44- ],
45- ),
4615 migrations .AlterField (
47- model_name = "member" ,
48- name = "profile_picture" ,
49- field = models .ImageField (blank = True , null = True , upload_to = "profiles/" ),
16+ model_name = "event" ,
17+ name = "date" ,
18+ field = models .DateTimeField (
19+ db_default = django .db .models .functions .datetime .Now ()
20+ ),
5021 ),
5122 migrations .CreateModel (
5223 name = "Game" ,
@@ -75,17 +46,18 @@ class Migration(migrations.Migration):
7546 ),
7647 ),
7748 ("active" , models .BooleanField (default = True )),
78- ("hostURL" , models .URLField (max_length = 2083 )),
49+ ("hostURL" , models .CharField (max_length = 2083 )),
50+ ("isItch" , models .BooleanField (default = True )),
7951 (
8052 "itchEmbedID" ,
8153 models .PositiveIntegerField (
8254 blank = True ,
8355 default = None ,
84- help_text = "If game is stored on itch.io, please enter the itchEmbedID, i.e., 1000200" ,
56+ help_text = "If game is stored on itch.io, please enter the 7 digit long game id as its itchEmbedID, i.e., 1000200" ,
8557 null = True ,
8658 ),
8759 ),
88- ("thumbnail " , models .ImageField (null = True , upload_to = "games/" )),
60+ ("pathToThumbnail " , models .ImageField (null = True , upload_to = "games/" )),
8961 (
9062 "event" ,
9163 models .ForeignKey (
@@ -116,7 +88,6 @@ class Migration(migrations.Migration):
11688 on_delete = django .db .models .deletion .CASCADE ,
11789 related_name = "game_showcases" ,
11890 to = "game_dev.game" ,
119- unique = True ,
12091 ),
12192 ),
12293 ],
0 commit comments