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

fix: migration 2017_01_28_222114_remove_viewed_at_from_contacts #6963

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ class RemoveViewedAtFromContacts extends Migration
public function up()
{
Schema::table('contacts', function (Blueprint $table) {
$table->dropColumn(
'viewed_at'
);
if ($table->hasColumn('viewed_at')) {
$table->dropColumn('viewed_at');
}
});
asbiin marked this conversation as resolved.
Show resolved Hide resolved
}

Expand All @@ -28,7 +28,9 @@ public function up()
public function down()
{
Schema::table('contacts', function (Blueprint $table) {
$table->dateTime('viewed_at')->nullable();
if ($table->hasColumn('viewed_at')) {
$table->dateTime('viewed_at')->nullable();
}
});
asbiin marked this conversation as resolved.
Show resolved Hide resolved
}
}
Loading