diff --git a/tests/PostgresTest.php b/tests/PostgresTest.php index 08b2d96c..33083387 100644 --- a/tests/PostgresTest.php +++ b/tests/PostgresTest.php @@ -55,9 +55,21 @@ test('correct rls policies get created', function(bool $action) { ], ]); + // Schema::dropIfExists('tenants'); Schema::dropIfExists('comments'); Schema::dropIfExists('posts'); + if(! Schema::hasTable('tenants')) { + Schema::create('tenants', function (Blueprint $table) { + $table->string('id')->primary(); + + // your custom columns may go here + + $table->timestamps(); + $table->json('data')->nullable(); + }); + } + Schema::create('posts', function (Blueprint $table) { $table->increments('id'); $table->string('text');