Skip to content

Commit 65c7d86

Browse files
committed
Skip migration on new file
1 parent 83966a6 commit 65c7d86

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎dmx.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,14 @@ def migrations(self):
747747

748748
DMX_Log.log.info(f"Data version: {file_data_version}")
749749

750+
if file_data_version < 2:
751+
# skip migrations, this is a new file
752+
self.collection["DMX_DataVersion"] = (
753+
self.data_version
754+
) # set data version to current
755+
DMX_Log.log.info("Skipping migrations on new file")
756+
return
757+
750758
if file_data_version < 3:
751759
hide_gobo_message = True
752760
DMX_Log.log.info("Running migration 2→3")

0 commit comments

Comments
 (0)