Skip to content

Commit

Permalink
Fix: Remove all DDA migrations to avoid conflict in production postgr…
Browse files Browse the repository at this point in the history
…es db

Signed-off-by: George J Padayatti <george.padayatti@igrant.io>
  • Loading branch information
georgepadayatti committed Apr 5, 2024
1 parent 3ea913d commit 499f748
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 88 deletions.
21 changes: 7 additions & 14 deletions data_disclosure_agreement/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Generated by Django 3.0.7 on 2024-04-02 05:58
# Generated by Django 3.0.7 on 2024-04-05 09:26

from django.db import migrations, models
import django.db.models.deletion
import jsonfield.fields
import time
import uuid


Expand All @@ -11,28 +12,20 @@ class Migration(migrations.Migration):
initial = True

dependencies = [
('config', '0001_initial'),
('config', '0005_auto_20240405_0607'),
]

operations = [
migrations.CreateModel(
name='DataDisclosureAgreement',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('language', models.CharField(max_length=255)),
('version', models.CharField(max_length=255)),
('templateId', models.CharField(max_length=255)),
('templateVersion', models.CharField(max_length=255)),
('dataController', jsonfield.fields.JSONField(default=dict)),
('agreementPeriod', models.IntegerField()),
('dataSharingRestrictions', jsonfield.fields.JSONField(default=dict)),
('purpose', models.CharField(max_length=255)),
('purposeDescription', models.CharField(max_length=255)),
('lawfulBasis', models.CharField(max_length=255)),
('personalData', jsonfield.fields.JSONField(blank=True, default=list)),
('codeOfConduct', models.CharField(max_length=255)),
('status', models.CharField(choices=[('listed', 'listed'), ('unlisted', 'unlisted'), ('awaitingForApproval', 'awaitingForApproval'), ('approved', 'approved'), ('rejected', 'rejected')], default='awaitingForApproval', max_length=255)),
('revisions', jsonfield.fields.JSONField(blank=True, default=list)),
('status', models.CharField(choices=[('listed', 'listed'), ('unlisted', 'unlisted'), ('awaitingForApproval', 'awaitingForApproval'), ('approved', 'approved'), ('rejected', 'rejected')], default='unlisted', max_length=255)),
('dataDisclosureAgreementRecord', jsonfield.fields.JSONField(default=dict)),
('createdAt', models.IntegerField(default=time.time_ns, editable=False)),
('isLatestVersion', models.BooleanField(default=True)),
('dataSourceId', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='config.DataSource')),
],
),
Expand Down
74 changes: 0 additions & 74 deletions data_disclosure_agreement/migrations/0002_auto_20240403_1846.py

This file was deleted.

0 comments on commit 499f748

Please sign in to comment.