From: Maxime Bourget Date: Sat, 4 May 2013 10:31:55 +0000 (+0100) Subject: Initial commit X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=51b02728a24efde13597e8df53b4a5ad8a634cd6;p=order_line_extra.git Initial commit --- 51b02728a24efde13597e8df53b4a5ad8a634cd6 diff --git a/hooks.php b/hooks.php new file mode 100644 index 0000000..308a941 --- /dev/null +++ b/hooks.php @@ -0,0 +1,56 @@ + array('0_sales_order_details', ) + ); + + return $this->update_databases($company, $updates, $check_only); + } + + function deactivate_extension($company, $check_only=true) + { + global $db_connections; + + $updates = array( + 'clean_sales_order_details.sql' => array('ugly_hack') // FIXME: just an ugly hack to clean database on deactivation + ); + + return $this->update_databases($company, $updates, $check_only); + } +} +?> diff --git a/sql/alter_sales_order_detail.sql b/sql/alter_sales_order_detail.sql new file mode 100644 index 0000000..4183f4e --- /dev/null +++ b/sql/alter_sales_order_detail.sql @@ -0,0 +1,4 @@ +ALTER TABlE 0_sales_order_details +ADD COLUMN required_date DATE, +ADD COLUMN comments TEXT +ADD COLUMN priority INTEGER;