File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Generated manually to fix all missing database fields
2+
3+ from django .db import migrations , models
4+
5+
6+ class Migration (migrations .Migration ):
7+
8+ dependencies = [
9+ ('home' , '0001_initial' ),
10+ ]
11+
12+ operations = [
13+ # Add missing archived field to Project model
14+ migrations .AddField (
15+ model_name = 'project' ,
16+ name = 'archived' ,
17+ field = models .BooleanField (default = False , verbose_name = 'archived' ),
18+ ),
19+
20+ # Ensure CyberChallenge has all required fields
21+ migrations .AddField (
22+ model_name = 'cyberchallenge' ,
23+ name = 'created_at' ,
24+ field = models .DateTimeField (auto_now_add = True , null = True ),
25+ ),
26+
27+ migrations .AddField (
28+ model_name = 'cyberchallenge' ,
29+ name = 'is_active' ,
30+ field = models .BooleanField (default = True ),
31+ ),
32+
33+ migrations .AddField (
34+ model_name = 'cyberchallenge' ,
35+ name = 'updated_at' ,
36+ field = models .DateTimeField (auto_now = True , null = True ),
37+ ),
38+ ]
You can’t perform that action at this time.
0 commit comments