summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-06-02 11:08:15 -0100
committerMaxence Lange <maxence@artificial-owl.com>2019-06-02 11:08:15 -0100
commit3ebd8b8bd0cf4aa1b4c1073fa5f1843aa2971152 (patch)
tree15fec17944f666dbe7055d7447065339bb89cdff /lib
parentd5f8f423af4761dd09777ff4cba290a050c9683d (diff)
cleaning
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Migration/Version0002Date20190506000001.php34
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