Mercurial > hg > orthanc-databases
comparison PostgreSQL/Plugins/PostgreSQLStorageArea.cpp @ 216:fbb52129158a
TransactionType given to PostgreSQLTransaction constructor
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 26 Mar 2021 17:47:56 +0100 |
parents | 3236894320d6 |
children | a4918d57435c |
comparison
equal
deleted
inserted
replaced
215:b40b30075c51 | 216:fbb52129158a |
---|---|
49 { | 49 { |
50 db->ClearAll(); | 50 db->ClearAll(); |
51 } | 51 } |
52 | 52 |
53 { | 53 { |
54 PostgreSQLTransaction t(*db); | 54 PostgreSQLTransaction t(*db, TransactionType_ReadWrite); |
55 | 55 |
56 if (!db->DoesTableExist("StorageArea")) | 56 if (!db->DoesTableExist("StorageArea")) |
57 { | 57 { |
58 db->Execute("CREATE TABLE IF NOT EXISTS StorageArea(" | 58 db->Execute("CREATE TABLE IF NOT EXISTS StorageArea(" |
59 "uuid VARCHAR NOT NULL PRIMARY KEY," | 59 "uuid VARCHAR NOT NULL PRIMARY KEY," |