muchas cosas, aun esta en proceso de construccion

This commit is contained in:
Daniel Cortés
2019-06-23 00:09:30 -04:00
parent a3a974d750
commit 110b0a07fc
23 changed files with 271 additions and 981 deletions

View File

@@ -0,0 +1,30 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateBaseDb extends Migration
{
public function up()
{
Schema::create('posts', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('title');
$table->longText('md');
$table->timestamps();
});
Schema::create('now', function(Blueprint $table) {
$table->bigIncrements('id');
$table->longText('md');
$table->timestamps();
});
}
public function down()
{
Schema::dropIfExists('now');
Schema::dropIfExists('posts');
}
}