Skip to content

Commit

Permalink
#14862 - Rename 'private' schema to 'public'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeckerson committed Feb 25, 2020
1 parent ec9b51a commit 375bf79
Showing 1 changed file with 18 additions and 30 deletions.
48 changes: 18 additions & 30 deletions tests/_data/assets/schemas/pgsql.sql
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@




drop table if exists co_invoices;

create table co_invoices
(
inv_id serial not null constraint co_invoices_pk primary key,
Expand All @@ -13,64 +9,56 @@ create table co_invoices
inv_total numeric(10, 2),
inv_created_at timestamp
);

alter table co_invoices owner to postgres;

create index co_invoices_inv_created_at_index
on co_invoices (inv_created_at);

create index co_invoices_inv_cst_id_index
on co_invoices (inv_cst_id);

create index co_invoices_inv_status_flag_index
on co_invoices (inv_status_flag);





drop table if exists co_orders;
drop table if exists co_orders;

create table co_orders
(
ord_id serial not null
constraint ord_pk
primary key,
ord_name varchar(70)
);

alter table public.co_orders owner to postgres;



drop table if exists private.co_orders_x_products;

create table private.co_orders_x_products

drop table if exists public.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;



drop table if exists co_products;
drop table if exists co_products;

create table co_products
(
prd_id serial not null
constraint prd_pk
primary key,
prd_name varchar(70)
);

alter table public.co_products owner to postgres;







alter table public.co_products owner to postgres;

0 comments on commit 375bf79

Please sign in to comment.