Skip to content

Commit

Permalink
#14862 - Review private/public schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeckerson committed Feb 25, 2020
1 parent 054d1f6 commit ef7b797
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions tests/_data/assets/schemas/mysql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ CREATE TABLE `co_orders` (



drop table if exists public.`co_orders_x_products`;
drop table if exists private.`co_orders_x_products`;

CREATE TABLE public.`co_orders_x_products` (
CREATE TABLE private.`co_orders_x_products` (
`oxp_ord_id` int(10) unsigned NOT NULL,
`oxp_prd_id` int(10) unsigned NOT NULL,
`oxp_quantity` int(10) unsigned NOT NULL,
Expand Down
6 changes: 3 additions & 3 deletions tests/_data/fixtures/Migrations/OrdersProductsMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,18 @@ protected function getSqlPgsql(): array
{
return [
"
drop table if exists private.co_orders_x_products;
drop table if exists public.co_orders_x_products;
",
"
create table private.co_orders_x_products
create table public.co_orders_x_products
(
oxp_ord_id int not null,
oxp_prd_id int not null,
oxp_quantity int not null
);
",
"
alter table private.co_orders_x_products owner to postgres;
alter table public.co_orders_x_products owner to postgres;
"
];
}
Expand Down
2 changes: 1 addition & 1 deletion tests/_envs/mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ modules:
waitlock: 10
initial_queries:
- "SET NAMES utf8;"
- "CREATE SCHEMA IF NOT EXISTS public"
- "CREATE SCHEMA IF NOT EXISTS private"
2 changes: 1 addition & 1 deletion tests/database/Mvc/Model/Criteria/JoinCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function mvcModelCriteriaJoinManyToManyMultipleSchema(DatabaseTester $I)

$expected = 'SELECT `co_orders`.`ord_id`, `co_orders`.`ord_name` '
. 'FROM `co_orders` '
. 'INNER JOIN `public`.`co_orders_x_products` '
. 'INNER JOIN `private`.`co_orders_x_products` '
. 'ON `co_orders`.`ord_id` = `co_orders_x_products`.`oxp_ord_id` '
. 'INNER JOIN `co_products` ON `co_orders_x_products`.`oxp_prd_id` = `co_products`.`prd_id`';
$actual = $builder->getQuery()->getSql();
Expand Down

0 comments on commit ef7b797

Please sign in to comment.