Skip to content

Commit d91062f

Browse files
authored
Merge pull request #610 from dbarzin/dev
Dev
2 parents cffaf58 + 5e0c5f7 commit d91062f

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
6+
7+
return new class extends Migration
8+
{
9+
public function up(): void
10+
{
11+
Schema::table('controls', function (Blueprint $table) {
12+
$table->decimal('note', 9, 2)->nullable()->change();
13+
});
14+
}
15+
16+
public function down(): void
17+
{
18+
Schema::table('controls', function (Blueprint $table) {
19+
$table->decimal('note', 5, 2)->nullable()->change();
20+
});
21+
}
22+
};

docker/entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ until mysqladmin ping -h"${DB_H}" --silent 2>/dev/null; do
1212
done
1313
echo "MySQL is ready."
1414

15+
# Permissions — toujours en root (avant le USER switch)
16+
chown -R www-data:www-data /var/www/html/storage /var/www/html/bootstrap/cache
17+
chmod -R 775 /var/www/html/storage /var/www/html/bootstrap/cache
18+
1519
# APP_KEY — générer seulement si absent
1620
grep -q '^APP_KEY=base64:' .env || php artisan key:generate --no-interaction
1721

0 commit comments

Comments
 (0)