| @@ 905-916 (lines=12) @@ | ||
| 902 | * |
|
| 903 | * @param Schema $schema |
|
| 904 | */ |
|
| 905 | public static function orocrmMagentoCustomerGroupForeignKeys(Schema $schema) |
|
| 906 | { |
|
| 907 | /** Generate foreign keys for table orocrm_magento_customer_group **/ |
|
| 908 | $table = $schema->getTable('orocrm_magento_customer_group'); |
|
| 909 | $table->addForeignKeyConstraint( |
|
| 910 | $schema->getTable('oro_integration_channel'), |
|
| 911 | ['channel_id'], |
|
| 912 | ['id'], |
|
| 913 | ['onDelete' => 'SET NULL', 'onUpdate' => null] |
|
| 914 | ); |
|
| 915 | /** End of generate foreign keys for table orocrm_magento_customer_group **/ |
|
| 916 | } |
|
| 917 | ||
| 918 | /** |
|
| 919 | * Generate foreign keys for table orocrm_magento_order |
|
| @@ 1091-1102 (lines=12) @@ | ||
| 1088 | * |
|
| 1089 | * @param Schema $schema |
|
| 1090 | */ |
|
| 1091 | public static function orocrmMagentoProductForeignKeys(Schema $schema) |
|
| 1092 | { |
|
| 1093 | /** Generate foreign keys for table orocrm_magento_product **/ |
|
| 1094 | $table = $schema->getTable('orocrm_magento_product'); |
|
| 1095 | $table->addForeignKeyConstraint( |
|
| 1096 | $schema->getTable('oro_integration_channel'), |
|
| 1097 | ['channel_id'], |
|
| 1098 | ['id'], |
|
| 1099 | ['onDelete' => 'SET NULL', 'onUpdate' => null] |
|
| 1100 | ); |
|
| 1101 | /** End of generate foreign keys for table orocrm_magento_product **/ |
|
| 1102 | } |
|
| 1103 | ||
| 1104 | /** |
|
| 1105 | * Generate foreign keys for table orocrm_magento_product_to_website |
|
| @@ 1158-1169 (lines=12) @@ | ||
| 1155 | * |
|
| 1156 | * @param Schema $schema |
|
| 1157 | */ |
|
| 1158 | public static function orocrmMagentoWebsiteForeignKeys(Schema $schema) |
|
| 1159 | { |
|
| 1160 | /** Generate foreign keys for table orocrm_magento_website **/ |
|
| 1161 | $table = $schema->getTable('orocrm_magento_website'); |
|
| 1162 | $table->addForeignKeyConstraint( |
|
| 1163 | $schema->getTable('oro_integration_channel'), |
|
| 1164 | ['channel_id'], |
|
| 1165 | ['id'], |
|
| 1166 | ['onDelete' => 'SET NULL', 'onUpdate' => null] |
|
| 1167 | ); |
|
| 1168 | /** End of generate foreign keys for table orocrm_magento_website **/ |
|
| 1169 | } |
|
| 1170 | } |
|
| 1171 | ||
| @@ 978-987 (lines=10) @@ | ||
| 975 | * |
|
| 976 | * @param Schema $schema |
|
| 977 | */ |
|
| 978 | protected function addOrocrmMagentoCustomerGroupForeignKeys(Schema $schema) |
|
| 979 | { |
|
| 980 | $table = $schema->getTable('orocrm_magento_customer_group'); |
|
| 981 | $table->addForeignKeyConstraint( |
|
| 982 | $schema->getTable('oro_integration_channel'), |
|
| 983 | ['channel_id'], |
|
| 984 | ['id'], |
|
| 985 | ['onDelete' => 'SET NULL'] |
|
| 986 | ); |
|
| 987 | } |
|
| 988 | ||
| 989 | /** |
|
| 990 | * Add orocrm_magento_customer foreign keys. |
|
| @@ 1214-1223 (lines=10) @@ | ||
| 1211 | * |
|
| 1212 | * @param Schema $schema |
|
| 1213 | */ |
|
| 1214 | protected function addOrocrmMagentoProductForeignKeys(Schema $schema) |
|
| 1215 | { |
|
| 1216 | $table = $schema->getTable('orocrm_magento_product'); |
|
| 1217 | $table->addForeignKeyConstraint( |
|
| 1218 | $schema->getTable('oro_integration_channel'), |
|
| 1219 | ['channel_id'], |
|
| 1220 | ['id'], |
|
| 1221 | ['onDelete' => 'SET NULL'] |
|
| 1222 | ); |
|
| 1223 | } |
|
| 1224 | ||
| 1225 | /** |
|
| 1226 | * Add orocrm_magento_prod_to_website foreign keys. |
|
| @@ 1252-1261 (lines=10) @@ | ||
| 1249 | * |
|
| 1250 | * @param Schema $schema |
|
| 1251 | */ |
|
| 1252 | protected function addOrocrmMagentoWebsiteForeignKeys(Schema $schema) |
|
| 1253 | { |
|
| 1254 | $table = $schema->getTable('orocrm_magento_website'); |
|
| 1255 | $table->addForeignKeyConstraint( |
|
| 1256 | $schema->getTable('oro_integration_channel'), |
|
| 1257 | ['channel_id'], |
|
| 1258 | ['id'], |
|
| 1259 | ['onDelete' => 'SET NULL'] |
|
| 1260 | ); |
|
| 1261 | } |
|
| 1262 | ||
| 1263 | /** |
|
| 1264 | * Add orocrm_magento_cart foreign keys. |
|