Handle lastSeen column and all the discontinued items. #36
@@ -123,7 +123,7 @@ class Migrate extends Command
|
|||||||
|
|
||||||
if (!Capsule::schema()->hasColumn('products', 'lastSeen')) {
|
if (!Capsule::schema()->hasColumn('products', 'lastSeen')) {
|
||||||
Capsule::schema()->table('products', function (Blueprint $table) {
|
Capsule::schema()->table('products', function (Blueprint $table) {
|
||||||
$table->date('last_seen')->nullable();
|
$table->date('lastSeen')->nullable();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user