mirror of https://github.com/pixelfed/pixelfed
Add snowflake ids to statuses
parent
37fd4bee95
commit
00bcf53045
@ -0,0 +1,6 @@
|
||||
<?php
|
||||
return [
|
||||
'epoch' => 1549756800000,
|
||||
'worker_id' => 1,
|
||||
'datacenter_id' => 1,
|
||||
];
|
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class AddSnowflakeidsToUsersTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('statuses', function (Blueprint $table) {
|
||||
$table->dropPrimary('id');
|
||||
$table->bigInteger('id')->unsigned()->primary()->change();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('statuses', function (Blueprint $table) {
|
||||
//
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue