summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorLMBishop <13875753+LMBishop@users.noreply.github.com>2022-05-06 20:30:12 +0100
committerLMBishop <13875753+LMBishop@users.noreply.github.com>2022-05-06 20:30:12 +0100
commit55691a6b054d4b9fd1cb1a4b2425a28f16d64436 (patch)
treeb6cad6db54142ef3155558e48acb771e50d43b53 /common
parent887589d57b658da26c37e108c544d16b9a40dbb7 (diff)
Prevent migration from similar mysql databases
Diffstat (limited to 'common')
-rw-r--r--common/src/main/java/com/leonardobishop/quests/common/storage/StorageProvider.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/src/main/java/com/leonardobishop/quests/common/storage/StorageProvider.java b/common/src/main/java/com/leonardobishop/quests/common/storage/StorageProvider.java
index 8eaaf181..be2178c6 100644
--- a/common/src/main/java/com/leonardobishop/quests/common/storage/StorageProvider.java
+++ b/common/src/main/java/com/leonardobishop/quests/common/storage/StorageProvider.java
@@ -49,4 +49,13 @@ public interface StorageProvider {
**/
void saveAllProgressFiles(List<QuestProgressFile> files);
+ /**
+ * Whether this provider is 'similar' to another one.
+ * Similarity is determined if the provider effectively points to the same data source.
+ *
+ * @param provider the provider to compare to
+ * @return true if similar, false otherwise
+ */
+ boolean isSimilar(StorageProvider provider);
+
}