Skip to content

Commit

Permalink
0.2.5
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
  • Loading branch information
ArtificialOwl committed Jun 22, 2019
1 parent e6842a5 commit ee7c0a6
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions lib/Migration/Version0002Date20190622000001.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,6 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
);
}

$qb = $this->connection->getQueryBuilder();
$qb->delete('social_a2_stream');
$expr = $qb->expr();
$qb->where($expr->eq('type', $qb->createNamedParameter('Announce')));

$qb->execute();

return $schema;
}

Expand All @@ -110,6 +103,12 @@ public function postSchemaChange(IOutput $output, Closure $schemaClosure, array
/** @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'
Expand Down

0 comments on commit ee7c0a6

Please sign in to comment.