mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 17:17:26 +01:00
Chore: Squash older automatic migrations (#7267)
This commit is contained in:
parent
a7d8b5c960
commit
b93c970635
11 changed files with 2749 additions and 6 deletions
|
|
@ -120,7 +120,7 @@ simple_png2 = os.path.join(os.path.dirname(__file__), "examples", "no-text.png")
|
|||
|
||||
@override_settings(FILENAME_FORMAT="")
|
||||
class TestMigrateArchiveFiles(DirectoriesMixin, FileSystemAssertsMixin, TestMigrations):
|
||||
migrate_from = "1011_auto_20210101_2340"
|
||||
migrate_from = "1006_auto_20201208_2209_squashed_1011_auto_20210101_2340"
|
||||
migrate_to = "1012_fix_archive_files"
|
||||
|
||||
def setUpBeforeMigration(self, apps):
|
||||
|
|
@ -287,7 +287,7 @@ def fake_parse_wrapper(parser, path, mime_type, file_name):
|
|||
|
||||
@override_settings(FILENAME_FORMAT="")
|
||||
class TestMigrateArchiveFilesErrors(DirectoriesMixin, TestMigrations):
|
||||
migrate_from = "1011_auto_20210101_2340"
|
||||
migrate_from = "1006_auto_20201208_2209_squashed_1011_auto_20210101_2340"
|
||||
migrate_to = "1012_fix_archive_files"
|
||||
auto_migrate = False
|
||||
|
||||
|
|
@ -458,7 +458,7 @@ class TestMigrateArchiveFilesBackwards(
|
|||
TestMigrations,
|
||||
):
|
||||
migrate_from = "1012_fix_archive_files"
|
||||
migrate_to = "1011_auto_20210101_2340"
|
||||
migrate_to = "1006_auto_20201208_2209_squashed_1011_auto_20210101_2340"
|
||||
|
||||
def setUpBeforeMigration(self, apps):
|
||||
Document = apps.get_model("documents", "Document")
|
||||
|
|
@ -521,7 +521,7 @@ class TestMigrateArchiveFilesBackwardsWithFilenameFormat(
|
|||
@override_settings(FILENAME_FORMAT="")
|
||||
class TestMigrateArchiveFilesBackwardsErrors(DirectoriesMixin, TestMigrations):
|
||||
migrate_from = "1012_fix_archive_files"
|
||||
migrate_to = "1011_auto_20210101_2340"
|
||||
migrate_to = "1006_auto_20201208_2209_squashed_1011_auto_20210101_2340"
|
||||
auto_migrate = False
|
||||
|
||||
def test_filename_clash(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue