Skip to content

Commit 84c9c8f

Browse files
committed
added db migration for mime type
1 parent 4478b32 commit 84c9c8f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
use Phinx\Migration\AbstractMigration;
4+
5+
class EmbiggenMimeType extends AbstractMigration
6+
{
7+
public function change()
8+
{
9+
$this->table('media')
10+
->changeColumn('mime', 'string', ['limit' => 128])
11+
->update();
12+
}
13+
14+
public function down()
15+
{
16+
17+
}
18+
}

0 commit comments

Comments
 (0)