mirror of https://github.com/pixelfed/pixelfed
Update StatusController, set missing reblog/share type
parent
fcee549705
commit
548a12a4c2
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use App\Status;
|
||||
|
||||
class AddMissingReblogOfIdTypesToStatusesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Status::whereNotNull('reblog_of_id')
|
||||
->whereNull('type')
|
||||
->update([
|
||||
'type' => 'share'
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue