Skip to content

Commit

Permalink
feat(fulltext): finish fulltext/migrations squash
Browse files Browse the repository at this point in the history
  • Loading branch information
spool committed Oct 15, 2023
1 parent afe8421 commit d7962d2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 54 deletions.
15 changes: 6 additions & 9 deletions fulltext/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-09-21 14:27
# Generated by Django 4.2.4 on 2023-10-14 11:04

from django.db import migrations, models

Expand All @@ -22,18 +22,15 @@ class Migration(migrations.Migration):
verbose_name="ID",
),
),
("created_at", models.DateTimeField(auto_now_add=True)),
("updated_at", models.DateTimeField(auto_now=True)),
("text", models.TextField()),
("path", models.CharField(blank=True, max_length=500, null=True)),
(
"compressed_path",
models.CharField(blank=True, max_length=200, null=True),
),
("path", models.CharField(blank=True, max_length=200, null=True)),
(
"fixture_path",
models.CharField(blank=True, max_length=200, null=True),
models.CharField(blank=True, max_length=500, null=True),
),
("errors", models.TextField(blank=True, null=True)),
("created_at", models.DateTimeField(auto_now_add=True)),
("updated_at", models.DateTimeField(auto_now=True)),
],
),
]

This file was deleted.

8 changes: 4 additions & 4 deletions fulltext/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class Fulltext(models.Model):
path to `plaintext` (`txt`) source file (if used). If
`self.compressed_path` is set, then `path` is to relevant
`txt` file when `self.compressed_path` is uncompressed
errors:
`str` records of any logged errors generating this `Fulltext`.
created_at:
date and time the record is created. This can also be
provided by a fixture, for example via `alto2txt2fixture`
Expand All @@ -22,8 +24,6 @@ class Fulltext(models.Model):
This can help keep track of the timing of any changes
after, for example, an import from an `alto2txt2fixture`
`json` fixture file.
errors:
`str` records of any logged errors generating this `Fulltext`.
Example:
```pycon
Expand All @@ -44,8 +44,8 @@ class Fulltext(models.Model):
"""

text = models.TextField()
path = models.CharField(max_length=200, blank=True, null=True)
compressed_path = models.CharField(max_length=200, blank=True, null=True)
path = models.CharField(max_length=500, blank=True, null=True)
compressed_path = models.CharField(max_length=500, blank=True, null=True)
errors = models.TextField(blank=True, null=True)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)

0 comments on commit d7962d2

Please sign in to comment.