You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +02:00
Android: Fixes #3800: Simplify initialisation code to prevent sharing
with app to create multiple instance of app and break settings.
Revert "Mobile: Add startup screen to show progress of db migration"
This reverts commit 569355a318
.
This commit is contained in:
@ -3,7 +3,6 @@ const { Database } = require('lib/database.js');
|
||||
const { sprintf } = require('sprintf-js');
|
||||
const Resource = require('lib/models/Resource');
|
||||
const { shim } = require('lib/shim.js');
|
||||
const EventEmitter = require('events');
|
||||
|
||||
const structureSql = `
|
||||
CREATE TABLE folders (
|
||||
@ -127,11 +126,6 @@ class JoplinDatabase extends Database {
|
||||
this.version_ = null;
|
||||
this.tableFieldNames_ = {};
|
||||
this.extensionToLoad = './build/lib/sql-extensions/spellfix';
|
||||
this.eventEmitter_ = new EventEmitter();
|
||||
}
|
||||
|
||||
eventEmitter() {
|
||||
return this.eventEmitter_;
|
||||
}
|
||||
|
||||
initialized() {
|
||||
@ -361,8 +355,6 @@ class JoplinDatabase extends Database {
|
||||
|
||||
let queries = [];
|
||||
|
||||
this.eventEmitter_.emit('startMigration', { version: targetVersion });
|
||||
|
||||
if (targetVersion == 1) {
|
||||
queries = this.wrapQueries(this.sqlStringToLines(structureSql));
|
||||
}
|
||||
|
Reference in New Issue
Block a user