remove optionId, closes #117

This commit is contained in:
azivner
2018-06-13 19:10:28 -04:00
parent d67246699a
commit 3d2ef6be01
6 changed files with 148 additions and 122 deletions
+2 -2
View File
@@ -5,8 +5,8 @@ const dateUtils = require('../services/date_utils');
class Option extends Entity {
static get tableName() { return "options"; }
static get primaryKeyName() { return "optionId"; }
static get hashedProperties() { return ["optionId", "name", "value"]; }
static get primaryKeyName() { return "name"; }
static get hashedProperties() { return ["name", "value"]; }
beforeSaving() {
super.beforeSaving();
+1 -1
View File
@@ -3,7 +3,7 @@
const build = require('./build');
const packageJson = require('../../package');
const APP_DB_VERSION = 99;
const APP_DB_VERSION = 100;
const SYNC_VERSION = 1;
module.exports = {
+1 -1
View File
@@ -205,7 +205,7 @@ const primaryKeys = {
"note_images": "noteImageId",
"labels": "labelId",
"api_tokens": "apiTokenId",
"options": "optionId"
"options": "name"
};
async function getEntityRow(entityName, entityId) {