mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-19 09:51:37 +00:00
* fix: add missing backticks in Blade for MySQL/MariaDB database names with hyphens
Before:
The CREATE DATABASE command failed for database names containing hyphens (-) because MySQL/MariaDB requires backticks around such names, but they were missing in the Blade template.
After:
Backticks (```) are now correctly added in the Blade template, ensuring MySQL properly interprets database names with hyphens.
Why:
MySQL/MariaDB does not allow hyphens in database names unless they are enclosed in backticks. The Blade template was missing these backticks, causing syntax errors. Adding them ensures the command executes successfully. 🚀
* fix: added hyphens to other places as well
---------
Co-authored-by: Saeed Vaziry <61919774+saeedvaziry@users.noreply.github.com>
6 lines
131 B
PHP
Executable File
6 lines
131 B
PHP
Executable File
if ! sudo mysql -e "DROP DATABASE IF EXISTS \`{{ $name }}\`"; then
|
|
echo 'VITO_SSH_ERROR' && exit 1
|
|
fi
|
|
|
|
echo "Command executed"
|