1
0
Fork 0
mirror of https://github.com/archtechx/virtualcolumn.git synced 2025-12-13 19:24:03 +00:00

Test that using different models extending the same class with VirtualColumn doesn't work correctly

This commit is contained in:
lukinovec 2023-11-01 15:47:00 +01:00
parent 0b108903b5
commit 4c0613fee8
2 changed files with 97 additions and 0 deletions

View file

@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateBarModelsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('bar_models', function (Blueprint $table) {
$table->increments('id');
$table->string('custom1');
$table->json('data')->nullable();
});
}
public function down()
{
Schema::dropIfExists('bar_models');
}
}