Fix migration. Closes #127. Closes #125

This commit is contained in:
TheOtherP 2018-02-23 19:06:05 +01:00
parent 29c7fe4887
commit 3dc5290199
4 changed files with 10 additions and 2 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
* text=auto eol=lf

View File

@ -12,7 +12,6 @@ public class MigrationFilenames {
public String apiAccesses;
public String downloads;
public String indexerSearches;
public String indexerStatuses;
public String indexers;
public String searches;

View File

@ -77,7 +77,6 @@ public class SqliteMigration {
entityManager.createNativeQuery("TRUNCATE TABLE INDEXERAPIACCESS").executeUpdate();
entityManager.createNativeQuery("TRUNCATE TABLE indexersearch").executeUpdate();
entityManager.createNativeQuery("TRUNCATE TABLE search").executeUpdate();
entityManager.createNativeQuery("TRUNCATE TABLE indexerstatus").executeUpdate();
entityManager.createNativeQuery("TRUNCATE TABLE indexernzbdownload").executeUpdate();
entityManager.createNativeQuery("TRUNCATE TABLE SEARCHRESULT").executeUpdate();
entityManager.createNativeQuery("TRUNCATE TABLE indexer").executeUpdate();

View File

@ -1,4 +1,13 @@
[
{
"version": "v1.4.3",
"changes": [
{
"type": "fix",
"text": "Migration failed because of missing datatabase table"
}
]
},
{
"version": "v1.4.2",
"changes": [