1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00

All: Handle master key in backend

This commit is contained in:
Laurent Cozic
2017-12-12 21:58:57 +00:00
parent 9bce52a92a
commit f6fbf3ba0f
6 changed files with 23 additions and 6 deletions

View File

@@ -153,6 +153,7 @@ class Database {
if (s == 'string') return 2;
}
if (type == 'fieldType') {
if (s) s = s.toUpperCase();
if (s == 'INTEGER') s = 'INT';
if (!(('TYPE_' + s) in this)) throw new Error('Unkonwn fieldType: ' + s);
return this['TYPE_' + s];