| 1 | <?php |
||
| 7 | class CreateUserCollection implements MongoDbMigrations\MigrationInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * {@inheritdoc} |
||
| 11 | */ |
||
| 12 | public function getId() |
||
| 16 | |||
| 17 | /** |
||
| 18 | * {@inheritdoc} |
||
| 19 | */ |
||
| 20 | public function getCreateDate() |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Creates a user collection and it's indexes |
||
| 27 | * |
||
| 28 | * This migration creates the required user collection to establish an application login and it's required indexes. |
||
| 29 | * An overall admin user is created as well. |
||
| 30 | * |
||
| 31 | * {@inheritdoc} |
||
| 32 | */ |
||
| 33 | public function execute(\MongoDB $db) |
||
| 41 | } |
||
| 42 |