Example #1
0
 /**
  * Populate migrations for the installation
  *
  * This "installs" all migrations from (root path)/src/db/migrations/data.
  * "installs" means it adds all migrations to the migrations table, but does not
  * perform any of the actions in the migrations.
  *
  * @param \src\extension\manager $extension_manager
  * @param \src\db\migrator $migrator
  */
 function populate_migrations($extension_manager, $migrator)
 {
     $finder = $extension_manager->get_finder();
     $migrations = $finder->core_path('src/db/migration/data/')->get_classes();
     $migrator->populate_migrations($migrations);
 }