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

Migrate Goal plugin update script to use Migration Factory #10808

Merged
merged 1 commit into from Oct 30, 2016

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Oct 30, 2016

As mentioned in comment here: ab3eba1#commitcomment-19183659

Goal plugin update script now uses Migration Factory

@sgiehl sgiehl added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels Oct 30, 2016
@sgiehl sgiehl added this to the 3.0.0-b2 milestone Oct 30, 2016
$updateSql = 'ALTER TABLE `' . Common::prefixTable('goal'). '` ADD COLUMN `description` VARCHAR(255) NOT NULL DEFAULT \'\' AFTER `name`;';

return array(
$this->migration->db->sql($updateSql, Updater\Migration\Db::ERROR_CODE_DUPLICATE_COLUMN)
Copy link
Member

Choose a reason for hiding this comment

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

could this use ->addColumn ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure. Changed it.

@tsteur
Copy link
Member

tsteur commented Oct 30, 2016

Feel free to merge once tests ran 👍

@sgiehl sgiehl merged commit 44b0262 into 3.x-dev Oct 30, 2016
@sgiehl sgiehl deleted the migrategoalupdatescript branch October 30, 2016 22:45
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 not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants