refactor(scanner): added in running number
This commit is contained in:
@@ -9,6 +9,7 @@ export const scanLog = pgTable("scan_log", {
|
|||||||
message: text("message").notNull(),
|
message: text("message").notNull(),
|
||||||
prompt: text("prompt"),
|
prompt: text("prompt"),
|
||||||
commandDescription: text("command_description"),
|
commandDescription: text("command_description"),
|
||||||
|
runningNumber: text("running_number").default("0"),
|
||||||
status: text("status"),
|
status: text("status"),
|
||||||
lines: jsonb("lines").default([]),
|
lines: jsonb("lines").default([]),
|
||||||
add_Date: timestamp("add_Date").defaultNow(),
|
add_Date: timestamp("add_Date").defaultNow(),
|
||||||
|
|||||||
@@ -18,6 +18,8 @@ router.post("/", async (req, res) => {
|
|||||||
commandDescription: body.commandDescription,
|
commandDescription: body.commandDescription,
|
||||||
status: body.status,
|
status: body.status,
|
||||||
lines: body.lines,
|
lines: body.lines,
|
||||||
|
user: body.user,
|
||||||
|
runningNumber: body.runningNumber,
|
||||||
})
|
})
|
||||||
.returning();
|
.returning();
|
||||||
|
|
||||||
|
|||||||
1
migrations/0047_spotty_queen_noir.sql
Normal file
1
migrations/0047_spotty_queen_noir.sql
Normal file
@@ -0,0 +1 @@
|
|||||||
|
ALTER TABLE "scan_log" ADD COLUMN "running_number" text DEFAULT '0';
|
||||||
2156
migrations/meta/0047_snapshot.json
Normal file
2156
migrations/meta/0047_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -330,6 +330,13 @@
|
|||||||
"when": 1778059910210,
|
"when": 1778059910210,
|
||||||
"tag": "0046_chemical_the_leader",
|
"tag": "0046_chemical_the_leader",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 47,
|
||||||
|
"version": "7",
|
||||||
|
"when": 1778068577325,
|
||||||
|
"tag": "0047_spotty_queen_noir",
|
||||||
|
"breakpoints": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user