Skip to content

Commit

Permalink
Add mysql options.
Browse files Browse the repository at this point in the history
  • Loading branch information
cottonspace committed May 17, 2024
1 parent 17d005e commit c5f6c70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/django-web-timecard-local-settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@
lines.push(' \'HOST\': \'' + $('#database-engine-host-server').val() + '\',');
if ($('#database-engine-select-server').val() == 'mysql') {
lines.push(' \'PORT\': \'3306\',');
lines.push(' \'OPTIONS\': {');
lines.push(' \'init_command\': \"SET sql_mode=\'STRICT_TRANS_TABLES\'\",');
lines.push(' \},');
} else if ($('#database-engine-select-server').val() == 'postgresql') {
lines.push(' \'PORT\': \'5432\',');
}
Expand Down

0 comments on commit c5f6c70

Please sign in to comment.