mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 22:24:03 +00:00
use resource migrations from asset
This commit is contained in:
parent
f420df09aa
commit
aa958ce930
2 changed files with 1 additions and 26 deletions
|
|
@ -1,25 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
use Illuminate\Database\Migrations\Migration;
|
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
|
||||||
use Illuminate\Support\Facades\Schema;
|
|
||||||
|
|
||||||
class CreateTenantResourcesTable extends Migration
|
|
||||||
{
|
|
||||||
public function up()
|
|
||||||
{
|
|
||||||
Schema::create('tenant_resources', function (Blueprint $table) {
|
|
||||||
$table->increments('id');
|
|
||||||
$table->string('tenant_id');
|
|
||||||
$table->string('resource_global_id');
|
|
||||||
$table->string('tenant_resources_type');
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
public function down()
|
|
||||||
{
|
|
||||||
Schema::dropIfExists('tenant_resources');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -46,7 +46,7 @@ beforeEach(function () {
|
||||||
// Run migrations on central connection
|
// Run migrations on central connection
|
||||||
pest()->artisan('migrate', [
|
pest()->artisan('migrate', [
|
||||||
'--path' => [
|
'--path' => [
|
||||||
__DIR__ . '/Etc/synced_resource_migrations',
|
__DIR__ . '/../assets/resource-syncing-migrations',
|
||||||
__DIR__ . '/Etc/synced_resource_migrations/users',
|
__DIR__ . '/Etc/synced_resource_migrations/users',
|
||||||
__DIR__ . '/Etc/synced_resource_migrations/companies',
|
__DIR__ . '/Etc/synced_resource_migrations/companies',
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue