Changed schema updater
Schema updater will add missing keys that are not strictly required
This commit is contained in:
parent
96da8eadc4
commit
ba4ca341f4
16
src/index.js
16
src/index.js
@ -130,7 +130,7 @@ function createSplashScreen() {
|
||||
|
||||
splash_screen.loadFile(path.join(app.getAppPath(), "src/splash.html"));
|
||||
// Open the DevTools.
|
||||
splash_screen.webContents.openDevTools();
|
||||
// splash_screen.webContents.openDevTools();
|
||||
// store.openInEditor();
|
||||
}
|
||||
|
||||
@ -151,7 +151,7 @@ function createEditorWindow(json) {
|
||||
main_window.webContents.send("open", json);
|
||||
});
|
||||
// Open the DevTools.
|
||||
main_window.webContents.openDevTools();
|
||||
// main_window.webContents.openDevTools();
|
||||
return main_window;
|
||||
}
|
||||
|
||||
@ -317,6 +317,18 @@ function update_1_0_0_schema(json) {
|
||||
delete row_data[old_key];
|
||||
});
|
||||
});
|
||||
if (!table_data.hasOwnProperty("filter")) {
|
||||
table_data["filter"] = false;
|
||||
}
|
||||
if (!table_data.hasOwnProperty("hidden")) {
|
||||
table_data["hidden"] = false;
|
||||
}
|
||||
if (!table_data.hasOwnProperty("tab_name")) {
|
||||
table_data["tab_name"] = "";
|
||||
}
|
||||
if (!table_data.hasOwnProperty("description")) {
|
||||
table_data["description"] = "";
|
||||
}
|
||||
});
|
||||
json = {
|
||||
"version": "1.1.0",
|
||||
|
Loading…
x
Reference in New Issue
Block a user