2 Commits

Author SHA1 Message Date
yann64 79b831367c Release 1.0.2 — changelog + bump version dev 1.0.3
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-04 22:04:55 +02:00
yann64 715aad58e1 Fix wizard : config:clear avant migrations pour éviter conflit pgsql/mysql
Sans ce clear, un bootstrap/cache/config.php résiduel (produit par
php artisan optimize en dev) est lu en priorité sur le .env réécrit
par writeEnv(), forçant une connexion pgsql même quand mysql est choisi.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-04 22:02:45 +02:00
3 changed files with 16 additions and 1 deletions
+9
View File
@@ -5,6 +5,15 @@ Format : [Keep a Changelog](https://keepachangelog.com/fr/1.0.0/) — versionnag
---
## [1.0.2] — 2026-06-04
### Corrigé
- **Assistant d'installation — conflit de connexion pgsql/mysql** : un fichier `bootstrap/cache/config.php` résiduel (produit par `php artisan optimize` sur le poste de développement) était lu en priorité sur le `.env` réécrit par le wizard, forçant une connexion PostgreSQL même quand MySQL était sélectionné. Un appel à `config:clear` est maintenant effectué entre l'écriture du `.env` et l'exécution des migrations.
- **Archives de déploiement** : `bootstrap/cache/*.php` exclu du build rsync pour éviter qu'un cache de configuration de développement ne soit embarqué dans les distributables.
---
## [1.0.1] — 2026-06-04
### Ajouté
+1 -1
View File
@@ -1 +1 @@
1.0.2
1.0.3
+6
View File
@@ -145,6 +145,12 @@ class SetupController extends Controller
if (! $ok) $success = false;
}
// 2b. Purge du cache de config pour forcer la lecture du nouveau .env
// (un bootstrap/cache/config.php résiduel sinon l'emporte sur le .env réécrit)
if ($success) {
$this->artisanRun($artisan, 'config:clear');
}
// 3. Migrations
if ($success) {
[$ok, $out] = $this->artisanRun($artisan, 'migrate --force');