From ee7c0a613edb3765b788768563ced8caf5c271d3 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Sat, 22 Jun 2019 00:12:12 -0100 Subject: 0.2.5 Signed-off-by: Maxence Lange --- lib/Migration/Version0002Date20190622000001.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/lib/Migration/Version0002Date20190622000001.php b/lib/Migration/Version0002Date20190622000001.php index a713215c..48ce46d2 100644 --- a/lib/Migration/Version0002Date20190622000001.php +++ b/lib/Migration/Version0002Date20190622000001.php @@ -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' -- cgit v1.2.3