Skip to content

Commit

Permalink
Merge pull request #98 from gooddata/vto/db-update
Browse files Browse the repository at this point in the history
fix: sync PostgreSQL DDL with the Snowflake DDL
  • Loading branch information
Vojtasii authored Jun 27, 2024
2 parents 4f97743 + 8207b0f commit ad68a0f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions ecommerce-demo/databases/ddl/postgresql.ddl
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ create table "monthlyinventory"
"monthly_quantity_eom" decimal(12,2),
"wdf__client_id" varchar(128),
"monthly_quantity_bom" decimal(12,2),
"date" date,
"date" timestamp,
primary key ("monthly_inventory_id"),
foreign key ("product__product_id") references "product"("product_id")
)
Expand All @@ -64,8 +64,8 @@ create table "order_lines"
"wdf__client_id" varchar(128),
"order_unit_discount" decimal(12,2),
"order_unit_cost" decimal(12,2),
"date" date,
"order_date" date,
"date" timestamp,
"order_date" timestamp,
"customer_age" varchar(128),
primary key ("order_line_id"),
foreign key ("product__product_id") references "product"("product_id"),
Expand All @@ -84,8 +84,8 @@ create table "returns"
"return_unit_quantity" decimal(12,2),
"wdf__client_id" varchar(128),
"return_unit_paid_amount" decimal(12,2),
"date" date,
"return_date" date,
"date" timestamp,
"return_date" timestamp,
primary key ("return_id"),
foreign key ("product__product_id") references "product"("product_id"),
foreign key ("order__order_id") references "orders"("order_id"),
Expand Down
10 changes: 5 additions & 5 deletions ecommerce-demo/databases/ddl/snowflake.ddl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ create or replace TABLE "customer"
"ls__customer_id__customer_name" VARCHAR(128),
"customer_city" VARCHAR(128),
"geo__customer_city__city_pushpin_longitude" VARCHAR(128),
"geo__customer_city__city_pushpin_latitude" VARCHAR(128),
"geo__customer_city__city_pushpin_latitude" VARCHAR(128),
"customer_country" VARCHAR(128),
"customer_email" VARCHAR(128),
"customer_state" VARCHAR(128),
Expand All @@ -29,11 +29,11 @@ create or replace TABLE "product"
"ls__product_id__product_name" VARCHAR(128),
"ls__product_id__product_id_image_web" VARCHAR(250),
"product_brand" VARCHAR(128),
"product_category" VARCHAR(128),
"product_category" VARCHAR(128),
"product_image" VARCHAR(250),
"ls__product_image__product_image_web" VARCHAR(250),
"rating" NUMBER(12,2),
"product_rating" VARCHAR(16),
"rating" NUMBER(12,2),
"product_rating" VARCHAR(16),
"wdf__product_category" VARCHAR(128),
primary key ("product_id")
)
Expand All @@ -45,7 +45,7 @@ create or replace TABLE "monthlyinventory"
"product__product_id" VARCHAR(128),
"inventory_month" DATE,
"monthly_quantity_eom" NUMBER(12,2),
"wdf__client_id" VARCHAR(128),
"wdf__client_id" VARCHAR(128),
"monthly_quantity_bom" NUMBER(12,2),
"date" TIMESTAMP_NTZ(9),
primary key ("monthly_inventory_id"),
Expand Down

0 comments on commit ad68a0f

Please sign in to comment.