소스 검색

SQLDatabaseManager refactor pass

nossr50 2 주 전
부모
커밋
43502b255c
3개의 변경된 파일414개의 추가작업 그리고 313개의 파일을 삭제
  1. 6 0
      Changelog.txt
  2. 408 311
      src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java
  3. 0 2
      src/test/java/com/gmail/nossr50/database/SQLDatabaseManagerTest.java

+ 6 - 0
Changelog.txt

@@ -3,6 +3,12 @@ Version 2.2.046
     Added permissions related to Spears
     Added /spears skill command
     Fixed bug where converting from SQL to FlatFile would not copy data for tridents, crossbows, maces, or spears
+    (Codebase) Added dockerized unit tests for SQL databases
+    (Codebase) Large refactoring to SQLDatabaseManager to bring it up to modern standards and improve maintainability
+
+    NOTES:
+    If you manually compile mcMMO you will need docker to run the unit tests, if you'd rather not install docker simply just add -DskipTests to your maven instructions
+
 
 Version 2.2.045
     Green Thumb now replants some crops it was failing to replant before (see notes)

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 408 - 311
src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java


+ 0 - 2
src/test/java/com/gmail/nossr50/database/SQLDatabaseManagerTest.java

@@ -474,8 +474,6 @@ class SQLDatabaseManagerTest {
         when(upgradeManager.shouldUpgrade(any(UpgradeType.class))).thenReturn(false);
     }
 
-
-
     // ------------------------------------------------------------------------
     // New user -> rows in all core tables
     // ------------------------------------------------------------------------

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.