00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 $installer = $this;
00028
00029
00030 $conn = $installer->getConnection();
00031
00032
00033 $conn->addColumn($installer->getTable('sales_quote'), 'customer_prefix', 'varchar(40) after customer_email');
00034 $conn->addColumn($installer->getTable('sales_quote'), 'customer_middlename', 'varchar(40) after customer_firstname');
00035 $conn->addColumn($installer->getTable('sales_quote'), 'customer_suffix', 'varchar(40) after customer_lastname');
00036
00037 $conn->addColumn($installer->getTable('sales_quote_address'), 'prefix', 'varchar(40) after email');
00038 $conn->addColumn($installer->getTable('sales_quote_address'), 'middlename', 'varchar(40) after firstname');
00039 $conn->addColumn($installer->getTable('sales_quote_address'), 'suffix', 'varchar(40) after lastname');
00040
00041 $installer->addAttribute('order', 'customer_prefix', array('type'=>'varchar', 'visible'=>false));
00042 $installer->addAttribute('order', 'customer_middlename', array('type'=>'varchar', 'visible'=>false));
00043 $installer->addAttribute('order', 'customer_suffix', array('type'=>'varchar', 'visible'=>false));
00044
00045 $installer->addAttribute('order_address', 'prefix', array());
00046 $installer->addAttribute('order_address', 'middlename', array());
00047 $installer->addAttribute('order_address', 'suffix', array());
00048
00049
00050