feat: GTSIT 사이트 구축

This commit is contained in:
박성필
2026-08-10 21:19:10 +09:00
commit dbb35d35c4
87 changed files with 48246 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
<?php
declare(strict_types=1);
if (PHP_SAPI !== 'cli') {
http_response_code(404);
exit;
}
require dirname(__DIR__) . '/app/bootstrap.php';
use App\Database;
$sql = file_get_contents(dirname(__DIR__) . '/database/migrate-20260805-inquiry-pin.sql');
if ($sql === false) {
fwrite(STDERR, "마이그레이션 파일을 읽을 수 없습니다.\n");
exit(1);
}
$statements = preg_split('/;\s*(?:\R|$)/', trim($sql)) ?: [];
foreach ($statements as $statement) {
if (trim($statement) !== '') {
Database::connection()->exec($statement);
}
}
fwrite(STDOUT, "문의 조회 PIN 마이그레이션을 적용했습니다.\n");