diff --git a/src/Exceptions/RLSCommentConstraintException.php b/src/RLS/Exceptions/RLSCommentConstraintException.php similarity index 86% rename from src/Exceptions/RLSCommentConstraintException.php rename to src/RLS/Exceptions/RLSCommentConstraintException.php index c3fa869d..7ca133f9 100644 --- a/src/Exceptions/RLSCommentConstraintException.php +++ b/src/RLS/Exceptions/RLSCommentConstraintException.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Stancl\Tenancy\Exceptions; +namespace Stancl\Tenancy\RLS\Exceptions; use Exception; diff --git a/src/RLS/PolicyManagers/TableRLSManager.php b/src/RLS/PolicyManagers/TableRLSManager.php index 9b6ec993..66c55a77 100644 --- a/src/RLS/PolicyManagers/TableRLSManager.php +++ b/src/RLS/PolicyManagers/TableRLSManager.php @@ -7,7 +7,7 @@ namespace Stancl\Tenancy\RLS\PolicyManagers; use Illuminate\Database\DatabaseManager; use Illuminate\Support\Str; use Stancl\Tenancy\Database\Exceptions\RecursiveRelationshipException; -use Stancl\Tenancy\Exceptions\RLSCommentConstraintException; +use Stancl\Tenancy\RLS\Exceptions\RLSCommentConstraintException; /** * Generates queries for creating RLS policies diff --git a/tests/RLS/TableManagerTest.php b/tests/RLS/TableManagerTest.php index acaa1d88..ae737788 100644 --- a/tests/RLS/TableManagerTest.php +++ b/tests/RLS/TableManagerTest.php @@ -20,7 +20,7 @@ use Stancl\Tenancy\RLS\PolicyManagers\TableRLSManager; use Stancl\Tenancy\Bootstrappers\PostgresRLSBootstrapper; use Stancl\Tenancy\Database\Exceptions\RecursiveRelationshipException; use function Stancl\Tenancy\Tests\pest; -use Stancl\Tenancy\Exceptions\RLSCommentConstraintException; +use Stancl\Tenancy\RLS\Exceptions\RLSCommentConstraintException; beforeEach(function () { CreateUserWithRLSPolicies::$forceRls = true;