Skip to content

Commit

Permalink
Merge pull request #19 from openimis/develop
Browse files Browse the repository at this point in the history
MERGING RELEASE branches
  • Loading branch information
delcroip authored May 16, 2023
2 parents da68be5 + 05a7504 commit be58cfb
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Generated by Django 3.2.18 on 2023-05-16 13:13

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

dependencies = [
('contribution', '0003_alter_premium_options'),
('payment', '0003_auto_20220401_1149'),
]

operations = [
migrations.RenameField(
model_name='payment',
old_name='SpReconcReqId',
new_name='reconc_req_id',
),
migrations.RenameField(
model_name='payment',
old_name='ReconciliationDate',
new_name='reconciliation_date',
),
migrations.AddField(
model_name='paymentdetail',
name='payment',
field=models.ForeignKey(db_column='PaymentID', on_delete=django.db.models.deletion.DO_NOTHING, related_name='payment_details', to='payment.payment'),
),
migrations.AddField(
model_name='paymentdetail',
name='premium',
field=models.ForeignKey(blank=True, db_column='PremiumID', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='payment_details', to='contribution.premium'),
),
migrations.AlterField(
model_name='payment',
name='reconc_req_id',
field=models.CharField(blank=True, db_column='SpReconcReqId', max_length=30, null=True),
),
migrations.AlterField(
model_name='payment',
name='reconciliation_date',
field=models.DateTimeField(blank=True, db_column='ReconciliationDate', null=True),
),
migrations.AlterField(
model_name='payment',
name='status',
field=models.IntegerField(blank=True, db_column='PaymentStatus', null=True),
),
migrations.AlterField(
model_name='payment',
name='type_of_payment',
field=models.CharField(blank=True, db_column='TypeOfPayment', max_length=50, null=True),
),
]
21 changes: 21 additions & 0 deletions payment/migrations/0005_set_managed_to_true.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Generated by Django 3.2.18 on 2023-05-16 13:12

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('payment', '0004_update_django_scheme_with_missing_fields'),
]

operations = [
migrations.AlterModelOptions(
name='payment',
options={'managed': True},
),
migrations.AlterModelOptions(
name='paymentdetail',
options={'managed': True},
),
]
4 changes: 2 additions & 2 deletions payment/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class Payment(core_models.VersionedModel):
# auditeduser_id = models.IntegerField(db_column='AuditedUSerID', blank=True, null=True)

class Meta:
managed = False
managed = True
db_table = 'tblPayment'

def __str__(self):
Expand Down Expand Up @@ -117,7 +117,7 @@ class PaymentDetail(core_models.VersionedModel):
db_column='AuditedUserId', blank=True, null=True)

class Meta:
managed = False
managed = True
db_table = 'tblPaymentDetails'

def __str__(self):
Expand Down

0 comments on commit be58cfb

Please sign in to comment.