| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 8 | class CreateUserCollection implements MongoDbMigrations\MigrationInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * {@inheritdoc} |
||
| 12 | */ |
||
| 13 | public function getId(): string |
||
| 14 | { |
||
| 15 | return 'create-user-collection-and-its-indexes'; |
||
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * {@inheritdoc} |
||
| 20 | */ |
||
| 21 | public function getCreateDate(): \DateTime |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Creates a user collection and it's indexes |
||
| 28 | * |
||
| 29 | * This migration creates the required user collection to establish an application login and it's required indexes. |
||
| 30 | * An overall admin user is created as well. |
||
| 31 | * |
||
| 32 | * {@inheritdoc} |
||
| 33 | */ |
||
| 34 | public function execute(Database $db) |
||
| 43 |