kopia lustrzana https://github.com/nextcloud/social
rodzic
40d24adbac
commit
e6842a5b6c
|
@ -1,5 +1,9 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 0.2.5
|
||||||
|
|
||||||
|
- [setup] Fixing migrations (again)
|
||||||
|
|
||||||
|
|
||||||
## 0.2.4
|
## 0.2.4
|
||||||
|
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -12,7 +12,7 @@ cert_dir=$(HOME)/.nextcloud/certificates
|
||||||
github_account=nextcloud
|
github_account=nextcloud
|
||||||
branch=master
|
branch=master
|
||||||
codecov_token_dir=$(HOME)/.nextcloud/codecov_token
|
codecov_token_dir=$(HOME)/.nextcloud/codecov_token
|
||||||
version+=0.2.4
|
version+=0.2.5
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
**🕸 Open standards:** We use the established ActivityPub standard!
|
**🕸 Open standards:** We use the established ActivityPub standard!
|
||||||
]]></description>
|
]]></description>
|
||||||
<version>0.2.4</version>
|
<version>0.2.5</version>
|
||||||
<licence>agpl</licence>
|
<licence>agpl</licence>
|
||||||
<author mail="maxence@artificial-owl.com">Maxence Lange</author>
|
<author mail="maxence@artificial-owl.com">Maxence Lange</author>
|
||||||
<author mail="jus@bitgrid.net">Julius Härtl</author>
|
<author mail="jus@bitgrid.net">Julius Härtl</author>
|
||||||
|
|
|
@ -46,7 +46,7 @@ use OCP\Migration\SimpleMigrationStep;
|
||||||
*
|
*
|
||||||
* @package OCA\Social\Migration
|
* @package OCA\Social\Migration
|
||||||
*/
|
*/
|
||||||
class Version0002Date20190618000001 extends SimpleMigrationStep {
|
class Version0002Date20190622000001 extends SimpleMigrationStep {
|
||||||
|
|
||||||
|
|
||||||
/** @var IDBConnection */
|
/** @var IDBConnection */
|
||||||
|
@ -87,6 +87,13 @@ class Version0002Date20190618000001 extends SimpleMigrationStep {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$qb = $this->connection->getQueryBuilder();
|
||||||
|
$qb->delete('social_a2_stream');
|
||||||
|
$expr = $qb->expr();
|
||||||
|
$qb->where($expr->eq('type', $qb->createNamedParameter('Announce')));
|
||||||
|
|
||||||
|
$qb->execute();
|
||||||
|
|
||||||
return $schema;
|
return $schema;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -359,6 +366,10 @@ class Version0002Date20190618000001 extends SimpleMigrationStep {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($oldValue === '') {
|
||||||
|
$oldValue = null;
|
||||||
|
}
|
||||||
|
|
||||||
$update = $this->connection->getQueryBuilder();
|
$update = $this->connection->getQueryBuilder();
|
||||||
$update->update($dest);
|
$update->update($dest);
|
||||||
$update->set($field, $update->createNamedParameter($oldValue));
|
$update->set($field, $update->createNamedParameter($oldValue));
|
||||||
|
@ -366,7 +377,10 @@ class Version0002Date20190618000001 extends SimpleMigrationStep {
|
||||||
|
|
||||||
$update->where($expr->eq($prim, $update->createNamedParameter($oldId)));
|
$update->where($expr->eq($prim, $update->createNamedParameter($oldId)));
|
||||||
|
|
||||||
$update->execute();
|
try {
|
||||||
|
$update->execute();
|
||||||
|
} catch (Exception $e) {
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'boolean':
|
case 'boolean':
|
Ładowanie…
Reference in New Issue