5fb269cc0a
- 保存先写本地缓存,登录后可选云端同步;退出登录不再因文件操作跳转登录 - 修复 Layui 遮罩残留、design2 保存后线条、toast 被 finally 提前关闭 - 保存过程恢复 loading spinner;成功提示 2.5 秒 - 云端 payload 瘦身与体积超限提示;后端 schema 迁移与 FileService 容错 Co-authored-by: Cursor <cursoragent@cursor.com>
24 lines
713 B
PHP
24 lines
713 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
require dirname(__DIR__, 2) . '/backend-web/scripts/schema-migrate-lib.php';
|
|
|
|
$host = getenv('SOON_DB_HOST') ?: 'mysql';
|
|
$port = (int)(getenv('SOON_DB_PORT') ?: 3306);
|
|
$user = getenv('SOON_DB_USER') ?: 'soondesign';
|
|
$pass = getenv('SOON_DB_PASS') ?: 'soondesign';
|
|
$db = getenv('SOON_DB_NAME') ?: 'soondesign';
|
|
|
|
try {
|
|
$pdo = new PDO(
|
|
sprintf('mysql:host=%s;port=%d;dbname=%s;charset=utf8mb4', $host, $port, $db),
|
|
$user,
|
|
$pass,
|
|
[PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]
|
|
);
|
|
soon_schema_migrate($pdo, 'migrate-dev-schema');
|
|
} catch (Throwable $e) {
|
|
fwrite(STDERR, 'migrate-dev-schema: ' . $e->getMessage() . PHP_EOL);
|
|
exit(1);
|
|
}
|