forked from friendica/friendica-addons
fix order of upgrade commands
This commit is contained in:
parent
fd25c338d2
commit
1ed6f2b851
|
@ -37,11 +37,11 @@ function retriever_install() {
|
|||
|
||||
if (DI::config()->get('retriever', 'dbversion') == '0.14') {
|
||||
if (!DBA::e("ALTER TABLE `retriever_rule` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci") ||
|
||||
!DBA::e("ALTER TABLE `retriever_item` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci") ||
|
||||
!DBA::e("ALTER TABLE `retriever_item` MODIFY `item-uri` varbinary(255) NOT NULL") ||
|
||||
!DBA::e("ALTER TABLE `retriever_resource` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci") ||
|
||||
!DBA::e("ALTER TABLE `retriever_item` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci") ||
|
||||
!DBA::e("ALTER TABLE `retriever_resource` MODIFY `url` varbinary(700) NOT NULL") ||
|
||||
!DBA::e("ALTER TABLE `retriever_resource` MODIFY `redirect-url` varbinary(700) NOT NULL")) {
|
||||
!DBA::e("ALTER TABLE `retriever_resource` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci") ||
|
||||
Logger::warning('Unable to update database tables: ' . DBA::errorMessage());
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue