diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2019-06-02 11:08:15 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2019-06-02 11:08:15 -0100 |
commit | 3ebd8b8bd0cf4aa1b4c1073fa5f1843aa2971152 (patch) | |
tree | 15fec17944f666dbe7055d7447065339bb89cdff /lib | |
parent | d5f8f423af4761dd09777ff4cba290a050c9683d (diff) |
cleaning
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Migration/Version0002Date20190506000001.php | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/lib/Migration/Version0002Date20190506000001.php b/lib/Migration/Version0002Date20190506000001.php index 5dd7b237..2a96312c 100644 --- a/lib/Migration/Version0002Date20190506000001.php +++ b/lib/Migration/Version0002Date20190506000001.php @@ -1118,22 +1118,24 @@ class Version0002Date20190506000001 extends SimpleMigrationStep { } + /** + * @param ISchemaWrapper $schema + * + * @throws Exception + */ private function fillStreamQueue(ISchemaWrapper $schema) { - try { - $this->duplicateTable( - $schema, 'social_queue_stream', CoreRequestBuilder::TABLE_STREAM_QUEUE, - [ - 'id', - 'token', - 'stream_id', - 'type', - 'status', - 'tries', - 'last' - ] - ); - } catch (Exception $e) { - } + $this->duplicateTable( + $schema, 'social_queue_stream', CoreRequestBuilder::TABLE_STREAM_QUEUE, + [ + 'id', + 'token', + 'stream_id', + 'type', + 'status', + 'tries', + 'last' + ] + ); } @@ -1180,6 +1182,8 @@ class Version0002Date20190506000001 extends SimpleMigrationStep { * @param string $source * @param string $dest * @param array $fields + * + * @throws Exception */ private function duplicateTable( ISchemaWrapper $schema, string $source, string $dest, array $fields |