Skip to content

Commit

Permalink
fix: make migrations compatible with sqlite & postgres
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed Dec 23, 2024
1 parent 06ff334 commit 149de14
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ public function up()
}

Schema::table('igniter_reviews', function(Blueprint $table) {
$table->timestamp('date_added')->change();
$table->renameColumn('date_added', 'created_at');
});

Schema::table('igniter_reviews', function(Blueprint $table) {
$table->timestamp('created_at')->change();
$table->timestamp('updated_at');
});
}
Expand Down

0 comments on commit 149de14

Please sign in to comment.