Skip to content

Commit aaa642c

Browse files
committed
New Version 1.15.1
- B #174 "ALTER TABLE DROP COLUMN" not supported in sqlite release , 3.30.0 (offical 3.35.0)
1 parent 946623c commit aaa642c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

octoprint_PrintJobHistory/DatabaseManager.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ def _upgradeFrom6To7(self):
116116
# - NEW CostModel
117117
# - Droping costUnit, because now there is a general plugin-setting
118118

119+
# ALTER TABLE "pjh_filamentmodel" DROP COLUMN "spoolCostUnit"; Not working for DB Release < 3.30.0 (offical 3.35.0)
119120
sql = """
120121
PRAGMA foreign_keys=off;
121122
BEGIN TRANSACTION;
@@ -132,8 +133,6 @@ def _upgradeFrom6To7(self):
132133
"withDefaultSpoolValues" INTEGER,
133134
FOREIGN KEY ("printJob_id") REFERENCES "pjh_printjobmodel" ("databaseId") ON DELETE CASCADE);
134135
135-
ALTER TABLE "pjh_filamentmodel" DROP COLUMN "spoolCostUnit";
136-
137136
UPDATE 'pjh_pluginmetadatamodel' SET value=7 WHERE key='databaseSchemeVersion';
138137
COMMIT;
139138
PRAGMA foreign_keys=on;

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
plugin_name = "Print Job History"
1515

1616
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
17-
plugin_version = "1.15.0"
17+
plugin_version = "1.15.1"
1818

1919
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
2020
# module

0 commit comments

Comments
 (0)