Skip to content

Commit

Permalink
Added support for postgres db
Browse files Browse the repository at this point in the history
eluhr committed Aug 19, 2021
1 parent 17ff6af commit 942c44e
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
@@ -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()
{

0 comments on commit 942c44e

Please sign in to comment.