Skip to content
This repository has been archived by the owner on Mar 5, 2022. It is now read-only.

Commit

Permalink
Adding migration for new fields
Browse files Browse the repository at this point in the history
  • Loading branch information
burzum committed Nov 2, 2020
1 parent c99616d commit 0437ad8
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

use Migrations\AbstractMigration;

/**
* AddingVariantsAndMetadataFields
*/
class AddingVariantsAndMetadataFields extends AbstractMigration
{
/**
* Change Method.
*
* More information on this method is available here:
* https://book.cakephp.org/phinx/0/en/migrations.html#the-change-method
*
* @return void
*/
public function change()
{
$this->table('file_storage')
->addColumn('variants', 'json', ['null' => true])
->addColumn('metadata', 'json', ['null' => true])
->update();
}
}

0 comments on commit 0437ad8

Please sign in to comment.