@staff0rd/assist 0.189.2 → 0.189.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Command } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@staff0rd/assist",
|
|
9
|
-
version: "0.189.
|
|
9
|
+
version: "0.189.3",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -4566,6 +4566,7 @@ function findPhase(id, phase) {
|
|
|
4566
4566
|
return { result, dir, db, itemId, phaseIdx };
|
|
4567
4567
|
}
|
|
4568
4568
|
function reindexPhases(db, itemId) {
|
|
4569
|
+
db.pragma("defer_foreign_keys = ON");
|
|
4569
4570
|
const remaining = db.prepare("SELECT idx FROM plan_phases WHERE item_id = ? ORDER BY idx").all(itemId);
|
|
4570
4571
|
for (let i = 0; i < remaining.length; i++) {
|
|
4571
4572
|
const oldIdx = remaining[i].idx;
|