diff --git a/CHANGELOG.md b/CHANGELOG.md index 976b8d9..f82ee09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,6 +44,10 @@ _v5.2.7_ - Fix handling of JSON datatypes on MySQL/MariaDB database backend. - Fix listeners count. +_V5.2.8_ + +- Fix SQLite does not support TEXT with options. + # Version 5.1 This one is a big one... **Be sure to backup your config.json and your database.sqlite before updating.** diff --git a/client/package.json b/client/package.json index 326d5e1..41a93ab 100644 --- a/client/package.json +++ b/client/package.json @@ -37,5 +37,5 @@ "build": "ng build --base-href ./ --configuration production", "start": "ng serve" }, - "version": "5.2.7" + "version": "5.2.8" } diff --git a/package.json b/package.json index 614258c..c576356 100644 --- a/package.json +++ b/package.json @@ -14,5 +14,5 @@ "update": "node update" }, "type": "module", - "version": "5.2.7" + "version": "5.2.8" } \ No newline at end of file diff --git a/server/lib/rdio-scanner/models/access.js b/server/lib/rdio-scanner/models/access.js index 4312865..198190f 100644 --- a/server/lib/rdio-scanner/models/access.js +++ b/server/lib/rdio-scanner/models/access.js @@ -61,7 +61,7 @@ accessFactory.schema = { allowNull: true, }, systems: { - type: Sequelize.DataTypes.TEXT('long'), + type: Sequelize.DataTypes.TEXT, allowNull: false, get() { const rawValue = this.getDataValue('systems'); diff --git a/server/lib/rdio-scanner/models/api-key.js b/server/lib/rdio-scanner/models/api-key.js index 288dfcb..360e14d 100644 --- a/server/lib/rdio-scanner/models/api-key.js +++ b/server/lib/rdio-scanner/models/api-key.js @@ -57,7 +57,7 @@ apiKeyFactory.schema = { allowNull: true, }, systems: { - type: Sequelize.DataTypes.TEXT('long'), + type: Sequelize.DataTypes.TEXT, allowNull: false, get() { const rawValue = this.getDataValue('systems'); diff --git a/server/lib/rdio-scanner/models/call.js b/server/lib/rdio-scanner/models/call.js index 7164726..968af54 100644 --- a/server/lib/rdio-scanner/models/call.js +++ b/server/lib/rdio-scanner/models/call.js @@ -56,7 +56,7 @@ callFactory.schema = { allowNull: false, }, frequencies: { - type: Sequelize.DataTypes.TEXT('long'), + type: Sequelize.DataTypes.TEXT, defaultValue: '[]', allowNull: false, get() { @@ -81,7 +81,7 @@ callFactory.schema = { allownull: true, }, sources: { - type: Sequelize.DataTypes.TEXT('long'), + type: Sequelize.DataTypes.TEXT, defaultValue: '[]', allowNull: false, get() { diff --git a/server/lib/rdio-scanner/models/config.js b/server/lib/rdio-scanner/models/config.js index 7ea1230..d98188a 100644 --- a/server/lib/rdio-scanner/models/config.js +++ b/server/lib/rdio-scanner/models/config.js @@ -45,7 +45,7 @@ configFactory.schema = { unique: true, }, val: { - type: Sequelize.DataTypes.TEXT('long'), + type: Sequelize.DataTypes.TEXT, allowNull: false, get() { const rawValue = this.getDataValue('val'); diff --git a/server/lib/rdio-scanner/models/downstream.js b/server/lib/rdio-scanner/models/downstream.js index 2afc8ae..7670309 100644 --- a/server/lib/rdio-scanner/models/downstream.js +++ b/server/lib/rdio-scanner/models/downstream.js @@ -53,7 +53,7 @@ downstreamFactory.schema = { allowNull: true, }, systems: { - type: Sequelize.DataTypes.TEXT('long'), + type: Sequelize.DataTypes.TEXT, allowNull: false, get() { const rawValue = this.getDataValue('systems'); diff --git a/server/lib/rdio-scanner/models/system.js b/server/lib/rdio-scanner/models/system.js index 93bf9e1..8e3ed11 100644 --- a/server/lib/rdio-scanner/models/system.js +++ b/server/lib/rdio-scanner/models/system.js @@ -44,8 +44,8 @@ systemFactory.schema = { defaultValue: false, }, blacklists: { - type: Sequelize.DataTypes.TEXT('long'), - defaultValue: [], + type: Sequelize.DataTypes.TEXT, + defaultValue: '[]', allowNull: false, get() { const rawValue = this.getDataValue('blacklists'); @@ -78,8 +78,8 @@ systemFactory.schema = { allowNull: true, }, talkgroups: { - type: Sequelize.DataTypes.TEXT('long'), - defaultValue: [], + type: Sequelize.DataTypes.TEXT, + defaultValue: '[]', allowNull: false, get() { const rawValue = this.getDataValue('talkgroups'); @@ -95,8 +95,8 @@ systemFactory.schema = { }, }, units: { - type: Sequelize.DataTypes.TEXT('long'), - defaultValue: [], + type: Sequelize.DataTypes.TEXT, + defaultValue: '[]', allowNull: false, get() { const rawValue = this.getDataValue('units');