Mercurial > hg > orthanc-databases
comparison MySQL/Plugins/MySQLStorageArea.cpp @ 237:35598014f140
refactoring to remove GlobalProperties.cpp
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 08 Apr 2021 19:09:04 +0200 |
parents | a4918d57435c |
children | b97a537f4613 |
comparison
equal
deleted
inserted
replaced
236:d1d2edbbe6fb | 237:35598014f140 |
---|---|
57 << "files that can be stored in this MySQL server"; | 57 << "files that can be stored in this MySQL server"; |
58 } | 58 } |
59 | 59 |
60 if (clearAll) | 60 if (clearAll) |
61 { | 61 { |
62 db.Execute("DROP TABLE IF EXISTS StorageArea", false); | 62 db.ExecuteMultiLines("DROP TABLE IF EXISTS StorageArea", false); |
63 } | 63 } |
64 | 64 |
65 db.Execute("CREATE TABLE IF NOT EXISTS StorageArea(" | 65 db.ExecuteMultiLines("CREATE TABLE IF NOT EXISTS StorageArea(" |
66 "uuid VARCHAR(64) NOT NULL PRIMARY KEY," | 66 "uuid VARCHAR(64) NOT NULL PRIMARY KEY," |
67 "content LONGBLOB NOT NULL," | 67 "content LONGBLOB NOT NULL," |
68 "type INTEGER NOT NULL)", false); | 68 "type INTEGER NOT NULL)", false); |
69 | 69 |
70 t.Commit(); | 70 t.Commit(); |
71 } | 71 } |
72 | 72 |
73 /** | 73 /** |