Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent possible fatal during update #13732

Merged
merged 1 commit into from Nov 20, 2018
Merged

Prevent possible fatal during update #13732

merged 1 commit into from Nov 20, 2018

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Nov 19, 2018

the $rawPrefix was only added in the release so if there is some opcache active etc the property might not be available yet.

@tsteur tsteur added the Needs Review PRs that need a code review label Nov 19, 2018
@tsteur tsteur added this to the 3.8.0 milestone Nov 19, 2018
@diosmosis diosmosis merged commit 31ed49c into 3.x-dev Nov 20, 2018
@diosmosis diosmosis deleted the 3701fatal branch November 20, 2018 20:52
@@ -29,8 +29,8 @@ public function __construct(MigrationFactory $factory)
public function getMigrations(Updater $updater)
{
return [
$this->migration->db->addColumn(Model::$rawPrefix, 'evolution_graph_within_period', 'TINYINT(4) NOT NULL DEFAULT 0'),
$this->migration->db->addColumn(Model::$rawPrefix, 'evolution_graph_period_n', 'INT(11) NULL'),
$this->migration->db->addColumn('report', 'evolution_graph_within_period', 'TINYINT(4) NOT NULL DEFAULT 0'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When not using Model::$rawPrefix the use statement for the model could be removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants