Skip to content

Commit

Permalink
Merge branch 'release/5.1.1'
Browse files Browse the repository at this point in the history
* release/5.1.1:
  updated the changelog
  Apply fixes from StyleCI (#608)
  opted for dropping/creating indexes instead of renaming #607
  • Loading branch information
austintoddj committed Jan 22, 2020
2 parents eec43b3 + 71bc446 commit 4aeaa2e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## [Unreleased](https://github.com/cnvs/canvas/compare/master...develop)

## [5.1.1](https://github.com/cnvs/canvas/compare/v5.0.0...v5.1.1) (January 22, 2020)

## Fixed
- Updated the views table migration to support MariaDB ([#607](https://github.com/cnvs/canvas/issues/607), [9a27a1f](https://github.com/cnvs/canvas/commit/9a27a1f86141d5bcc25c6cd3751e6fd499b56654))

## [5.1.0](https://github.com/cnvs/canvas/compare/v5.0.3...v5.1.0) (January 22, 2020)

## Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ class AlterCanvasViewsRenameIndexes extends Migration
public function up()
{
Schema::table('canvas_views', function (Blueprint $table) {
$table->renameIndex('post_id', 'canvas_views_post_id_index');
$table->renameIndex('created_at', 'canvas_views_created_at_index');
$table->dropIndex('post_id');
$table->index('post_id');

$table->dropIndex('created_at');
$table->index('created_at');
});
}

Expand All @@ -27,8 +30,11 @@ public function up()
public function down()
{
Schema::table('canvas_views', function (Blueprint $table) {
$table->renameIndex('canvas_views_post_id_index', 'post_id');
$table->renameIndex('canvas_views_created_at_index', 'created_at');
$table->dropIndex('canvas_views_post_id_index');
$table->index('post_id', 'post_id');

$table->dropIndex('canvas_views_created_at_index');
$table->index('created_at', 'created_at');
});
}
}

0 comments on commit 4aeaa2e

Please sign in to comment.