diff --git a/tests/_data/assets/schemas/mysql.sql b/tests/_data/assets/schemas/mysql.sql index 5b701f1aeb5..48e2e8d6b8e 100644 --- a/tests/_data/assets/schemas/mysql.sql +++ b/tests/_data/assets/schemas/mysql.sql @@ -1,7 +1,7 @@ drop table if exists `co_customers`; - + create table co_customers ( `cst_id` int(10) auto_increment primary key, @@ -9,20 +9,20 @@ create table co_customers `cst_name_last` varchar(100) null, `cst_name_first` varchar(50) null ); - + create index co_customers_cst_status_flag_index on `co_customers` (`cst_status_flag`); - + create index co_customers_cst_name_last_index on `co_customers` (`cst_name_last`); - + create index co_customers_cst_name_first_index on `co_customers` (`cst_name_first`); - + drop table if exists `co_invoices`; - + create table co_invoices ( `inv_id` int(10) auto_increment primary key, @@ -32,90 +32,90 @@ create table co_invoices `inv_total` float(10, 2) null, `inv_created_at` datetime null ); - + 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`); - + create index co_invoices_inv_created_at_index on `co_invoices` (`inv_created_at`); - + drop table if exists objects; - + create table objects ( `obj_id` int(10) auto_increment primary key, `obj_name` varchar(100) not null, `obj_type` tinyint(3) unsigned not null ); - + drop table if exists `co_orders`; - + CREATE TABLE `co_orders` ( `ord_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `ord_name` VARCHAR(70) NULL, PRIMARY KEY (`ord_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; - + drop table if exists private.`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, PRIMARY KEY (`oxp_ord_id`, `oxp_prd_id` ) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; - + drop table if exists `co_products`; - + CREATE TABLE `co_products` ( `prd_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `prd_name` VARCHAR(70) NULL, PRIMARY KEY (`prd_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; - + drop table if exists `co_sources`; - + create table co_sources ( `id` int(10) auto_increment primary key, `username` varchar(100) null, `source` varchar(100) null ); - + create index co_sources_username_index on co_sources (username); - + drop table if exists `table_with_uuid_primary`; - + create table table_with_uuid_primary ( `uuid` char(36) not null primary key, `int_field` int null ); - + drop table if exists `stuff`; - + create table stuff ( `stf_id` int(10) auto_increment primary key, `stf_name` varchar(100) not null, `stf_type` tinyint(3) unsigned not null ); - + diff --git a/tests/_data/assets/schemas/pgsql.sql b/tests/_data/assets/schemas/pgsql.sql index 20d6cf3c54f..11805dc8e44 100644 --- a/tests/_data/assets/schemas/pgsql.sql +++ b/tests/_data/assets/schemas/pgsql.sql @@ -1,5 +1,28 @@ -drop table if exists co_invoices; + +drop table if exists co_customers; + +create table co_customers +( + cst_id serial not null constraint co_customers_pk primary key, + cst_status_flag smallint null, + cst_name_last varchar(100) null, + cst_name_first varchar(50) null +); + +create index co_customers_cst_status_flag_index + on co_customers (cst_status_flag); + +create index co_customers_cst_name_last_index + on co_customers (cst_name_last); + +create index co_customers_cst_name_first_index + on co_customers (cst_name_first); + + + +drop table if exists co_invoices; + create table co_invoices ( inv_id serial not null constraint co_invoices_pk primary key, @@ -9,23 +32,22 @@ 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 @@ -33,26 +55,26 @@ create table co_orders primary key, ord_name varchar(70) ); - + alter table public.co_orders owner to postgres; - + 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 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 @@ -60,5 +82,12 @@ create table co_products primary key, prd_name varchar(70) ); - + alter table public.co_products owner to postgres; + + + + + + +