-
-
Save doctrinebot/a3536a7ea96e6f0746bc to your computer and use it in GitHub Desktop.
Attachments to Doctrine Jira Issue DBAL-166 - https://github.com/doctrine/dbal/issues/1324
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php | |
<?php | |
/** | |
* Doctrine DBAL Patch | |
* fix table creation query encode | |
* (c) _Nicolay | |
*/ | |
system ('cp ./vendor/doctrine-dbal/lib/Doctrine/DBAL/Schema/Schema.php ./vendor/doctrine-dbal/lib/Doctrine/DBAL/Schema/Schema.php.Orig'); | |
$data = file_get_contents('./vendor/doctrine-dbal/lib/Doctrine/DBAL/Schema/Schema.php'); | |
$data = str_replace("new Table(\$tableName);", | |
"new Table(\$tableName,array(),array(),array(),0,array('charset'=>'utf8','collate'=>'utf8_general_ci'));", | |
$data); | |
file_put_contents('./vendor/doctrine-dbal/lib/Doctrine/DBAL/Schema/Schema.php', $data); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment