muchas cosas, aun esta en proceso de construccion
This commit is contained in:
30
database/migrations/2019_06_22_034600_create_base_db.php
Normal file
30
database/migrations/2019_06_22_034600_create_base_db.php
Normal 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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user