Added script to run phinx migrations; updated tests table to have better labels
This commit is contained in:
@ -19,7 +19,8 @@ final class AddTestsTable extends AbstractMigration
|
||||
public function change()
|
||||
{
|
||||
$table = $this->table('tests');
|
||||
$table->addColumn('date_tag', 'string', ['null' => false])
|
||||
$table->addColumn('title', 'string', ['null' => false])
|
||||
->addColumn('description', 'string')
|
||||
->addColumn('benchmark_id', 'integer', ['null' => false])
|
||||
->addColumn('component_id', 'integer', ['null' => false])
|
||||
->addForeignKey('benchmark_id', 'benchmarks', 'id', ['delete'=> 'CASCADE', 'update'=> 'CASCADE'])
|
||||
|
Reference in New Issue
Block a user