Files
timebank-cc-public/database/migrations/2022_08_02_084454_create_sociables_table.php
Ronald Huynen 2547717edb Initial commit
2026-03-23 21:37:59 +01:00

37 lines
845 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateSociablesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('sociables', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('social_id');
$table->string('sociable_type');
$table->unsignedBigInteger('sociable_id');
$table->string('user_on_social');
$table->string('server_of_social')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('sociables');
}
}