8000 Mysql 8+ has issue with double quotes in install script by halkeye · Pull Request #3828 · YOURLS/YOURLS · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Mysql 8+ has issue with double quotes in install script #3828

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 25, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions includes/functions-install.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ function yourls_create_sql_tables() {
$create_tables = array();
$create_tables[YOURLS_DB_TABLE_URL] =
'CREATE TABLE IF NOT EXISTS `'.YOURLS_DB_TABLE_URL.'` ('.
'`keyword` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT "",'.
'`keyword` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT \'\','.
'`url` text CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,'.
'`title` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,'.
'`timestamp` timestamp NOT NULL DEFAULT current_timestamp(),'.
Expand All @@ -230,7 +230,7 @@ function yourls_create_sql_tables() {
$create_tables[YOURLS_DB_TABLE_OPTIONS] =
'CREATE TABLE IF NOT EXISTS `'.YOURLS_DB_TABLE_OPTIONS.'` ('.
'`option_id` bigint(20) unsigned NOT NULL auto_increment,'.
'`option_name` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL default "",'.
'`option_name` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL default \'\','.
'`option_value` longtext COLLATE utf8mb4_unicode_ci NOT NULL,'.
'PRIMARY KEY (`option_id`,`option_name`),'.
'KEY `option_name` (`option_name`)'.
Expand Down
0