diff --git a/composer.json b/composer.json index fd5271e9..126b0925 100644 --- a/composer.json +++ b/composer.json @@ -45,7 +45,7 @@ ], "psr-4": { "Sil\\SspBase\\Features\\": "features/", - "Sil\\SilAuth\\migrations\\": "migrations/" + "Sil\\SilAuth\\migrations\\": "modules/silauth/migrations/" } }, "config": { diff --git a/modules/silauth/lib/Auth/Source/config/yii2-config.php b/modules/silauth/lib/Auth/Source/config/yii2-config.php index b3f361c5..32a42f1b 100644 --- a/modules/silauth/lib/Auth/Source/config/yii2-config.php +++ b/modules/silauth/lib/Auth/Source/config/yii2-config.php @@ -8,6 +8,7 @@ 'id' => 'SilAuth', 'aliases' => [ '@SimpleSAML/Module/silauth/Auth/Source' => __DIR__ . '/..', + '@Sil/SilAuth' => __DIR__ . '/../../../..', ], 'bootstrap' => [ 'gii', @@ -57,7 +58,7 @@ 'migrate' => [ 'class' => 'yii\console\controllers\MigrateController', 'migrationNamespaces' => [ - 'SimpleSAML\\Module\\silauth\\Auth\\Source\\migrations\\', + 'Sil\\SilAuth\\migrations\\', ], // Disable non-namespaced migrations. diff --git a/migrations/M161213135750CreateInitialTables.php b/modules/silauth/migrations/M161213135750CreateInitialTables.php similarity index 100% rename from migrations/M161213135750CreateInitialTables.php rename to modules/silauth/migrations/M161213135750CreateInitialTables.php diff --git a/migrations/M161213150831SwitchToUtcForDateTimes.php b/modules/silauth/migrations/M161213150831SwitchToUtcForDateTimes.php similarity index 100% rename from migrations/M161213150831SwitchToUtcForDateTimes.php rename to modules/silauth/migrations/M161213150831SwitchToUtcForDateTimes.php diff --git a/migrations/M170214141109CreateFailedLoginsTable.php b/modules/silauth/migrations/M170214141109CreateFailedLoginsTable.php similarity index 100% rename from migrations/M170214141109CreateFailedLoginsTable.php rename to modules/silauth/migrations/M170214141109CreateFailedLoginsTable.php diff --git a/migrations/M170214145629RemoveOldTables.php b/modules/silauth/migrations/M170214145629RemoveOldTables.php similarity index 100% rename from migrations/M170214145629RemoveOldTables.php rename to modules/silauth/migrations/M170214145629RemoveOldTables.php diff --git a/migrations/M170215141724SplitFailedLoginsTable.php b/modules/silauth/migrations/M170215141724SplitFailedLoginsTable.php similarity index 100% rename from migrations/M170215141724SplitFailedLoginsTable.php rename to modules/silauth/migrations/M170215141724SplitFailedLoginsTable.php