pixelfed/database/migrations/2019_03_12_043935_add_snowflakeids_to_users_table.php

34 lines
689 B
PHP
Raw Permalink Normal View History

2019-03-12 05:38:21 +00:00
<?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->bigInteger('id')->unsigned()->primary()->change();
2024-08-08 04:28:21 +00:00
$table->dropPrimary('id');
2019-03-12 05:38:21 +00:00
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('statuses', function (Blueprint $table) {
//
});
}
}