MOON
Server: Apache
System: Linux res.emeff.ca 3.10.0-962.3.2.lve1.5.24.10.el7.x86_64 #1 SMP Wed Mar 20 07:36:02 EDT 2019 x86_64
User: accemeff (1004)
PHP: 7.0.33
Disabled: NONE
Upload Files
File: /home/accemeff/vendor/craftcms/cms/src/migrations/m180202_185551_fix_focal_points.php
<?php

namespace craft\migrations;

use craft\db\Migration;
use craft\db\Table;

/**
 * m180202_185551_fix_focal_points migration.
 */
class m180202_185551_fix_focal_points extends Migration
{
    /**
     * @inheritdoc
     */
    public function safeUp()
    {
        // 3.0.0-RC8 introduced a bug where images would get a 50%-50% focal
        // point. Technically that's also the position you get by default when
        // you click the Focal Point button and don't change it, so it's
        // possible we're nulling out some intended focal points here, but meh.
        $this->update(Table::ASSETS, ['focalPoint' => null], ['focalPoint' => '0.5000;0.5000'], [], false);
    }

    /**
     * @inheritdoc
     */
    public function safeDown()
    {
        echo "m180202_185551_fix_focal_points cannot be reverted.\n";
        return false;
    }
}