| @@ 1132-1147 (lines=16) @@ | ||
| 1129 | $schema->dropTable("${prefix}file_map"); |
|
| 1130 | } |
|
| 1131 | ||
| 1132 | if ($schema->hasTable("${prefix}filecache")) { |
|
| 1133 | $fileCacheTable = $schema->getTable("${prefix}filecache"); |
|
| 1134 | ||
| 1135 | if (!$fileCacheTable->hasColumn('checksum')) { |
|
| 1136 | $fileCacheTable->addColumn( |
|
| 1137 | 'checksum', |
|
| 1138 | Type::STRING, |
|
| 1139 | [ |
|
| 1140 | 'default' => null, |
|
| 1141 | 'length' => 255, |
|
| 1142 | 'notnull' => false |
|
| 1143 | ] |
|
| 1144 | ); |
|
| 1145 | } |
|
| 1146 | ||
| 1147 | } |
|
| 1148 | ||
| 1149 | if ($schema->hasTable("${prefix}share")) { |
|
| 1150 | $shareTable = $schema->getTable("${prefix}share"); |
|
| @@ 1149-1163 (lines=15) @@ | ||
| 1146 | ||
| 1147 | } |
|
| 1148 | ||
| 1149 | if ($schema->hasTable("${prefix}share")) { |
|
| 1150 | $shareTable = $schema->getTable("${prefix}share"); |
|
| 1151 | ||
| 1152 | if (!$shareTable->hasColumn('uid_initiator')) { |
|
| 1153 | $shareTable->addColumn( |
|
| 1154 | 'uid_initiator', |
|
| 1155 | Type::STRING, |
|
| 1156 | [ |
|
| 1157 | 'default' => null, |
|
| 1158 | 'length' => 64, |
|
| 1159 | 'notnull' => false |
|
| 1160 | ] |
|
| 1161 | ); |
|
| 1162 | } |
|
| 1163 | } |
|
| 1164 | } |
|
| 1165 | } |
|
| 1166 | ||