Skip to content

Commit

Permalink
Merge pull request #25 from dmstr/feature/postgres-support
Browse files Browse the repository at this point in the history
Added support for postgres db
  • Loading branch information
schmunk42 authored Aug 19, 2021
2 parents 17ff6af + 942c44e commit 97c3dec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions migrations/m170815_120101_update_hashmap_table_charset.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ public function up()
{
// to prevent syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes
$this->alterColumn("filefly_hashmap","path","VARCHAR(255) NOT NULL");
$this->execute("ALTER TABLE `filefly_hashmap` CONVERT TO CHARACTER SET utf8;");
}
if ($this->db->getDriverName() === 'mysql') {
$this->execute("ALTER TABLE filefly_hashmap CONVERT TO CHARACTER SET utf8;");
} }

public function down()
{
Expand Down

0 comments on commit 97c3dec

Please sign in to comment.