Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/564/head
Maxence Lange 2019-06-02 11:08:15 -01:00
rodzic d5f8f423af
commit 3ebd8b8bd0
1 zmienionych plików z 19 dodań i 15 usunięć

Wyświetl plik

@ -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