getTable('sales/billing_agreement'); $installer->getConnection()->addColumn($billingAgreementTable, 'store_id', 'smallint(5) unsigned DEFAULT NULL'); $installer->getConnection()->addConstraint( 'FK_BILLING_AGREEMENT_STORE', $billingAgreementTable, 'store_id', $installer->getTable('core/store'), 'store_id', 'SET NULL', 'CASCADE' );