Add weight, length, width, and height fields to the product table
authorAbhijit Menon-Sen <ams@toroid.org>
Thu, 30 Jul 2009 06:46:23 +0000 (06:46 +0000)
committerams <ams@45cb6cf1-00bc-42d2-bb5a-07f51df49f94>
Thu, 30 Jul 2009 06:46:23 +0000 (06:46 +0000)
schema/bse.sql

index c4a0da1cc042247c998e8b8b0f55ca2c5aef21a1..4263df52ead711a1a81d784aa16f33f342bb2807 100644 (file)
@@ -185,6 +185,12 @@ create table product (
   subscription_required integer not null default -1,
 
   product_code varchar(80) not null,
+
+  -- properties relevant to calculating shipping cost
+  weight integer not null,
+  length integer not null default 0,
+  width integer not null default 0,
+  height integer not null default 0,
   
   primary key(articleId)
 );
@@ -859,4 +865,4 @@ create table bse_order_item_options (
   display varchar(80) not null,
   display_order integer not null,
   index item_order(order_item_id, display_order)
-) type=innodb;
\ No newline at end of file
+) type=innodb;