Skip to content

Commit

Permalink
migrations fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NileshPant1999 committed Nov 2, 2023
1 parent ca230e9 commit 0bb200a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/mappings/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.1.2 on 2023-10-27 09:30
# Generated by Django 4.1.2 on 2023-11-02 09:56

from django.db import migrations, models
import django.db.models.deletion
Expand Down Expand Up @@ -31,7 +31,7 @@ class Migration(migrations.Migration):
('categories_version', sage_desktop_api.models.fields.StringNullField(help_text='latest sync version of categories', max_length=255, null=True)),
('cost_code_version', sage_desktop_api.models.fields.StringNullField(help_text='latest sync version of cost code', max_length=255, null=True)),
('vendor_version', sage_desktop_api.models.fields.StringNullField(help_text='latest sync version of vendor', max_length=255, null=True)),
('workspace', models.OneToOneField(help_text='Reference to Workspace model', on_delete=django.db.models.deletion.PROTECT, to='workspaces.workspace')),
('workspace', models.ForeignKey(help_text='Reference to Workspace model', on_delete=django.db.models.deletion.PROTECT, to='workspaces.workspace')),
],
options={
'db_table': 'import_logs',
Expand Down
4 changes: 2 additions & 2 deletions apps/mappings/models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django.db import models

from apps.workspaces.models import BaseModel
from apps.workspaces.models import BaseForeignWorkspaceModel
from sage_desktop_api.models.fields import (
CustomJsonField,
StringNotNullField,
Expand All @@ -18,7 +18,7 @@
)


class ImportLog(BaseModel):
class ImportLog(BaseForeignWorkspaceModel):
"""
Table to store import logs
"""
Expand Down

0 comments on commit 0bb200a

Please sign in to comment.