Archived
1
0
Fork 0
This repository has been archived on 2026-04-03. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
httpcb/app/migrations/20180321133715_create_request_object_table.php

25 lines
506 B
PHP

<?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();
}
}