Skip to content

Commit

Permalink
Fixed a migration error that was preventing Craft 2.6 installs from b…
Browse files Browse the repository at this point in the history
…eing able to update to Craft 3.
  • Loading branch information
angrybrad committed Feb 7, 2017
1 parent 2da02c0 commit 2957f39
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Craft CMS 3.0 Working Changelog
- Fixed a bug where Craft was only logging warnings and errors when Dev Mode was enabled.
- #1356: Fixed the “x” button’s icon that appears in search inputs, used to clear the search input.
- Fixed a bug where you would get a validation error if you tried to purchase Craft with a 100%-off coupon code.
- Fixed a migration error that was preventing Craft 2.6 installs from being able to update to Craft 3.

## 3.0.0-beta.2 - 2017-02-02

Expand Down
2 changes: 1 addition & 1 deletion src/migrations/m160708_185142_volume_hasUrls_setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class m160708_185142_volume_hasUrls_setting extends Migration
public function safeUp()
{
if (!$this->db->columnExists('{{%volumes}}', 'hasUrls')) {
$this->addColumn('{{%volumes}}', 'hasUrls', 'boolean');
$this->addColumn('{{%volumes}}', 'hasUrls', $this->boolean()->defaultValue(false));
}

// Update all Volumes and move the setting from settings column to it's own field
Expand Down
2 changes: 1 addition & 1 deletion src/migrations/m160804_110002_userphotos_to_assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ private function _createUserphotoVolume(): int
'type' => Local::class,
'name' => $name,
'handle' => $handle,
'hasUrls' => null,
'hasUrls' => false,
'url' => null,
'settings' => Json::encode(['path' => $this->_basePath]),
'fieldLayoutId' => null,
Expand Down

0 comments on commit 2957f39

Please sign in to comment.