From aa958ce9306088c6dbbd325cf3142222ba61c97a Mon Sep 17 00:00:00 2001 From: Abrar Ahmad Date: Thu, 10 Nov 2022 15:55:56 +0500 Subject: [PATCH] use resource migrations from asset --- ...1_000002_create_tenant_resources_table.php | 25 ------------------- tests/ResourceSyncingPolymorphicTest.php | 2 +- 2 files changed, 1 insertion(+), 26 deletions(-) delete mode 100644 tests/Etc/synced_resource_migrations/2020_05_11_000002_create_tenant_resources_table.php diff --git a/tests/Etc/synced_resource_migrations/2020_05_11_000002_create_tenant_resources_table.php b/tests/Etc/synced_resource_migrations/2020_05_11_000002_create_tenant_resources_table.php deleted file mode 100644 index 83b722fa..00000000 --- a/tests/Etc/synced_resource_migrations/2020_05_11_000002_create_tenant_resources_table.php +++ /dev/null @@ -1,25 +0,0 @@ -increments('id'); - $table->string('tenant_id'); - $table->string('resource_global_id'); - $table->string('tenant_resources_type'); - }); - } - - public function down() - { - Schema::dropIfExists('tenant_resources'); - } -} diff --git a/tests/ResourceSyncingPolymorphicTest.php b/tests/ResourceSyncingPolymorphicTest.php index eff5b91a..e6f34ba2 100644 --- a/tests/ResourceSyncingPolymorphicTest.php +++ b/tests/ResourceSyncingPolymorphicTest.php @@ -46,7 +46,7 @@ beforeEach(function () { // Run migrations on central connection pest()->artisan('migrate', [ '--path' => [ - __DIR__ . '/Etc/synced_resource_migrations', + __DIR__ . '/../assets/resource-syncing-migrations', __DIR__ . '/Etc/synced_resource_migrations/users', __DIR__ . '/Etc/synced_resource_migrations/companies', ],