Transacciones
This commit is contained in:
@@ -155,9 +155,6 @@ async function initVersionTable(db: Pool, versionTable: string) {
|
|||||||
try {
|
try {
|
||||||
await client.query("BEGIN")
|
await client.query("BEGIN")
|
||||||
await client.query(ddlCreateVersionTable)
|
await client.query(ddlCreateVersionTable)
|
||||||
await client.query("COMMIT")
|
|
||||||
|
|
||||||
await client.query("BEGIN")
|
|
||||||
await client.query(insertFistValue)
|
await client.query(insertFistValue)
|
||||||
await client.query("COMMIT")
|
await client.query("COMMIT")
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Reference in New Issue
Block a user