mysql: update db vibecoding fix:))

This commit is contained in:
Crivion
2025-10-18 17:57:28 +03:00
parent 7553a5c0bf
commit 2e2745ca34
2 changed files with 2 additions and 2 deletions

View File

@@ -161,7 +161,7 @@ class MysqlController extends Controller
];
// Update password if provided
if ($newPassword) {
if ($request->filled('db_password')) {
$updateData['db_password'] = $newPassword;
// Update MySQL user password

View File

@@ -20,7 +20,7 @@ export default function EditDatabaseForm({ database }) {
const [loading, setLoading] = useState(false);
const { data, setData, patch, processing, reset, clearErrors, errors } = useForm({
id: database.id,
id: database.id || 0,
charset: database.charset || 'utf8mb4',
collation: database.collation || 'utf8mb4_unicode_ci',
db_password: '',