Skip to content

Commit

Permalink
Replaces db migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
djperrefort committed Dec 4, 2023
1 parent fa76bce commit a8b5542
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 33 deletions.
23 changes: 19 additions & 4 deletions keystone_api/apps/users/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.2.5 on 2023-11-09 08:52
# Generated by Django 4.2.7 on 2023-12-04 08:47

import django.contrib.auth.models
from django.db import migrations, models
Expand All @@ -14,6 +14,20 @@ class Migration(migrations.Migration):
]

operations = [
migrations.CreateModel(
name='Group',
fields=[
],
options={
'proxy': True,
'indexes': [],
'constraints': [],
},
bases=('auth.group',),
managers=[
('objects', django.contrib.auth.models.GroupManager()),
],
),
migrations.CreateModel(
name='User',
fields=[
Expand All @@ -29,11 +43,12 @@ class Migration(migrations.Migration):
],
),
migrations.CreateModel(
name='Delegate',
name='ResearchGroup',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('delegates', models.ManyToManyField(related_name='delegate_delegates', to='users.user')),
('pi', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='delegate_pi', to='users.user')),
('acc_name', models.CharField(max_length=255)),
('admins', models.ManyToManyField(related_name='research_group_admins', to='users.user')),
('pi', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='research_group_pi', to='users.user')),
],
),
]
29 changes: 0 additions & 29 deletions keystone_api/apps/users/migrations/0002_group.py

This file was deleted.

0 comments on commit a8b5542

Please sign in to comment.