Skip to content

Commit

Permalink
Add migrations to rename fields: updated[_by] to modified[_by]
Browse files Browse the repository at this point in the history
  • Loading branch information
rchavik committed Nov 20, 2019
1 parent c00cc0e commit be7aa6d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions config/Migrations/20191120013810_TranslateSyncTimestampFields.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
use Migrations\AbstractMigration;

class TranslateSyncTimestampFields extends AbstractMigration
{
/**
* Change Method.
*
* More information on this method is available here:
* http://docs.phinx.org/en/latest/migrations.html#the-change-method
* @return void
*/
public function change()
{
$this->table('i18n')
->renameColumn('updated', 'modified')
->renameColumn('updated_by', 'modified_by')
->save();
}
}

0 comments on commit be7aa6d

Please sign in to comment.