diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2019-06-20 22:59:40 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2019-06-20 22:59:40 -0100 |
commit | a1221cacf6dc9dbdffc1929f361e9c2e942c049d (patch) | |
tree | 51977745153fb5ba074d01773e47c219d11dfeec /lib/Migration/Version0002Date20190618000001.php | |
parent | 74a2f80209733543c48035184c2321158a0e2da3 (diff) |
new announce system
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
gotActor->hasActor
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
cleaning
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
retrieve Person if missing
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
fix async
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
avoid async duplicate
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
fixing
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Migration/Version0002Date20190618000001.php')
-rw-r--r-- | lib/Migration/Version0002Date20190618000001.php | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/lib/Migration/Version0002Date20190618000001.php b/lib/Migration/Version0002Date20190618000001.php index 10dcadd9..a534bf18 100644 --- a/lib/Migration/Version0002Date20190618000001.php +++ b/lib/Migration/Version0002Date20190618000001.php @@ -32,14 +32,10 @@ namespace OCA\Social\Migration; use Closure; -use DateTime; -use Doctrine\DBAL\Exception\UniqueConstraintViolationException; use Doctrine\DBAL\Schema\SchemaException; use Doctrine\DBAL\Types\Type; use Exception; -use OCA\Social\Exceptions\CacheActorDoesNotExistException; use OCP\DB\ISchemaWrapper; -use OCP\DB\QueryBuilder\IQueryBuilder; use OCP\IDBConnection; use OCP\Migration\IOutput; use OCP\Migration\SimpleMigrationStep; @@ -82,12 +78,14 @@ class Version0002Date20190618000001 extends SimpleMigrationStep { } $table = $schema->getTable('social_a2_stream'); - $table->addColumn( - 'details', Type::TEXT, - [ - 'notnull' => false - ] - ); + if (!$table->hasColumn('details')) { + $table->addColumn( + 'details', Type::TEXT, + [ + 'notnull' => false + ] + ); + } return $schema; } |