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