Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
enhancement/noid/cleaner-stream v0.2.5
Maxence Lange 2019-06-22 00:12:12 -01:00
rodzic e6842a5b6c
commit ee7c0a613e
1 zmienionych plików z 6 dodań i 7 usunięć

Wyświetl plik

@ -87,13 +87,6 @@ class Version0002Date20190622000001 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;
}
@ -110,6 +103,12 @@ class Version0002Date20190622000001 extends SimpleMigrationStep {
/** @var ISchemaWrapper $schema */
$schema = $schemaClosure();
$qb = $this->connection->getQueryBuilder();
$qb->delete('social_a2_stream');
$expr = $qb->expr();
$qb->where($expr->eq('type', $qb->createNamedParameter('Announce')));
$qb->execute();
$this->check(
$schema, 'id', 'social_server_follows', 'social_a2_follows', 'accepted', 'boolean'