Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created June 18, 2020 12:46
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 parzibyte/83a59ebbdb1e98c92ab82ba81889b1dd to your computer and use it in GitHub Desktop.
Save parzibyte/83a59ebbdb1e98c92ab82ba81889b1dd to your computer and use it in GitHub Desktop.
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AgregarNombreEstablecimientoAUsuarios extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('users', function (Blueprint $table) {
$table->string("nombre_establecimiento")->default("");
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn("nombre_establecimiento");
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment