mirror of
https://github.com/archtechx/virtualcolumn.git
synced 2025-12-12 17:24:03 +00:00
Initial commit
This commit is contained in:
commit
1418a51fef
11 changed files with 6071 additions and 0 deletions
|
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateMyModelsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('my_models', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
|
||||
$table->string('custom1')->nullable();
|
||||
$table->string('custom2')->nullable();
|
||||
|
||||
$table->json('data');
|
||||
});
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('my_models');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue