| Total Complexity | 2 | 
| Total Lines | 18 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 11 | class m190304_031715_soft_delete_users extends Migration | ||
| 12 | { | ||
| 13 | /** | ||
| 14 | * @inheritdoc | ||
| 15 | */ | ||
| 16 | public function safeUp() | ||
| 17 |     { | ||
| 18 | // Unique social UID should no longer be enforced by the DB to avoid conflicts with soft-deleted users. | ||
| 19 |         MigrationHelper::dropIndexIfExists('{{%social_login_accounts}}', ['providerHandle', 'socialUid'], true, $this); | ||
| 20 | } | ||
| 21 | |||
| 22 | /** | ||
| 23 | * @inheritdoc | ||
| 24 | */ | ||
| 25 | public function safeDown() | ||
| 29 | } | ||
| 30 | } | ||
| 31 |