[Fix] Fixed db migration script
This commit is contained in:
parent
03c677d870
commit
42ed0ea801
|
@ -401,7 +401,8 @@ public class DbSchemaVersionCheck {
|
||||||
ZipEntry ze;
|
ZipEntry ze;
|
||||||
while ((ze = zip.getNextEntry()) != null) {
|
while ((ze = zip.getNextEntry()) != null) {
|
||||||
String entryName = ze.getName();
|
String entryName = ze.getName();
|
||||||
if (entryName.endsWith(".sql") && entryName.contains("migration"))
|
if (entryName.endsWith(".sql") && entryName.startsWith(this.app) && entryName
|
||||||
|
.contains("migration"))
|
||||||
versions.add(parseVersion(entryName));
|
versions.add(parseVersion(entryName));
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
@ -414,8 +415,9 @@ public class DbSchemaVersionCheck {
|
||||||
File[] files = file.listFiles();
|
File[] files = file.listFiles();
|
||||||
if (files != null) {
|
if (files != null) {
|
||||||
for (File f : files) {
|
for (File f : files) {
|
||||||
if (f.getName().endsWith(".sql") && f.getName().contains("migration"))
|
String name = f.getName();
|
||||||
versions.add(parseVersion(f.getName()));
|
if (name.endsWith(".sql") && name.startsWith(this.app) && name.contains("migration"))
|
||||||
|
versions.add(parseVersion(name));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue