Skip to content

Commit

Permalink
refactor: squash migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
hamzawaleed01 committed Jan 30, 2024
1 parent c1109b0 commit 4af246d
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 36 deletions.
2 changes: 1 addition & 1 deletion integrated_channels/cornerstone/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
from rest_framework.authentication import SessionAuthentication
from rest_framework.response import Response

from django.apps import apps
from django.utils.http import parse_http_date_safe

from django.apps import apps
from enterprise.api.throttles import ServiceUserThrottle
from enterprise.utils import get_enterprise_customer, get_enterprise_worker_user, get_oauth2authentication_class
from integrated_channels.cornerstone.models import CornerstoneEnterpriseCustomerConfiguration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Generated by Django 3.2.22 on 2024-01-25 09:25

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


class Migration(migrations.Migration):
Expand All @@ -14,4 +14,23 @@ class Migration(migrations.Migration):
name='integratedchannelapirequestlogs',
options={'verbose_name_plural': 'Integrated channels API request logs'},
),
migrations.RemoveField(
model_name='integratedchannelapirequestlogs',
name='api_record',
),
migrations.AddField(
model_name='integratedchannelapirequestlogs',
name='response_body',
field=models.TextField(blank=True, help_text='API call response body', null=True),
),
migrations.AddField(
model_name='integratedchannelapirequestlogs',
name='status_code',
field=models.PositiveIntegerField(blank=True, help_text='API call response HTTP status code', null=True),
),
migrations.AlterField(
model_name='integratedchannelapirequestlogs',
name='time_taken',
field=models.FloatField(),
),
]
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class Migration(migrations.Migration):

dependencies = [
('integrated_channel', '0032_auto_20240125_0936'),
('integrated_channel', '0031_alter_integratedchannelapirequestlogs_options'),
]

operations = [
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion integrated_channels/integrated_channel/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,6 @@ def __repr__(self):
"""
return self.__str__()


@classmethod
def store_api_call(
cls,
Expand Down

0 comments on commit 4af246d

Please sign in to comment.