Skip to content

Commit 246d089

Browse files
committed
Add talk level field possibly be used in schedule
1 parent 443f7c3 commit 246d089

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
use Phinx\Migration\AbstractMigration;
4+
5+
class AddTalkLevelField extends AbstractMigration
6+
{
7+
8+
/**
9+
* Migrate Up.
10+
*/
11+
public function up()
12+
{
13+
$this->table('talks')
14+
->addColumn('level', 'string', ['length' => 20])
15+
->save();
16+
}
17+
18+
/**
19+
* Migrate Down.
20+
*/
21+
public function down()
22+
{
23+
$this->table('talks')
24+
->removeColumn('level')
25+
->save();
26+
}
27+
}

0 commit comments

Comments
 (0)