adding base db migrations.
This commit is contained in:
parent
3db175d542
commit
bf3d78da00
4 changed files with 134 additions and 0 deletions
|
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
|
||||
use Phinx\Migration\AbstractMigration;
|
||||
|
||||
class CreateRequestObjectTable extends AbstractMigration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
$table = $this->table('request_object');
|
||||
|
||||
$table->addForeignKey('id', 'request_meta', ['id'],
|
||||
[ 'constraint' => 'FK_request_meta' ]);
|
||||
|
||||
$table->addColumn('headers', 'blob', [
|
||||
'null' => true,
|
||||
]);
|
||||
|
||||
$table->addColumn('body', 'blob', [
|
||||
'null' => true,
|
||||
]);
|
||||
|
||||
$table->save();
|
||||
}
|
||||
}
|
||||
Reference in a new issue