Skip to content

Instantly share code, notes, and snippets.

@ggMartinez
Last active September 29, 2023 03:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ggMartinez/c94f365e9a192dbdae7149329aed51c8 to your computer and use it in GitHub Desktop.
Save ggMartinez/c94f365e9a192dbdae7149329aed51c8 to your computer and use it in GitHub Desktop.
Migraciones
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateTareasTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tareas', function (Blueprint $table) {
$table->id();
$table->string("titulo");
$table->string("contenido");
$table->string("estado");
$table->string("autor");
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('tareas');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment