Files
sirpremiumv2/database/migrations/2022_10_22_202759_create_redes_table.php
T
2023-11-07 22:43:10 +00:00

34 lines
670 B
PHP
Executable File

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('redes', function (Blueprint $table) {
$table->id();
$table -> string('nombre')->nullable();
$table -> string('url')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('redes');
}
};