@@ -37,13 +37,6 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
37
37
['identity ' => true , 'unsigned ' => true , 'nullable ' => false , 'primary ' => true ],
38
38
'Entity ID '
39
39
)
40
- ->addColumn (
41
- 'entity_type_id ' ,
42
- \Magento \Framework \DB \Ddl \Table::TYPE_SMALLINT ,
43
- null ,
44
- ['unsigned ' => true , 'nullable ' => false , 'default ' => '0 ' ],
45
- 'Entity Type ID '
46
- )
47
40
->addColumn (
48
41
'attribute_set_id ' ,
49
42
\Magento \Framework \DB \Ddl \Table::TYPE_SMALLINT ,
@@ -93,10 +86,6 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
93
86
[],
94
87
'Update Time '
95
88
)
96
- ->addIndex (
97
- $ installer ->getIdxName ('catalog_product_entity ' , ['entity_type_id ' ]),
98
- ['entity_type_id ' ]
99
- )
100
89
->addIndex (
101
90
$ installer ->getIdxName ('catalog_product_entity ' , ['attribute_set_id ' ]),
102
91
['attribute_set_id ' ]
@@ -117,13 +106,6 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
117
106
'attribute_set_id ' ,
118
107
\Magento \Framework \DB \Ddl \Table::ACTION_CASCADE
119
108
)
120
- ->addForeignKey (
121
- $ installer ->getFkName ('catalog_product_entity ' , 'entity_type_id ' , 'eav_entity_type ' , 'entity_type_id ' ),
122
- 'entity_type_id ' ,
123
- $ installer ->getTable ('eav_entity_type ' ),
124
- 'entity_type_id ' ,
125
- \Magento \Framework \DB \Ddl \Table::ACTION_CASCADE
126
- )
127
109
->setComment ('Catalog Product Table ' );
128
110
$ installer ->getConnection ()->createTable ($ table );
129
111
@@ -139,13 +121,6 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
139
121
['identity ' => true , 'nullable ' => false , 'primary ' => true ],
140
122
'Value ID '
141
123
)
142
- ->addColumn (
143
- 'entity_type_id ' ,
144
- \Magento \Framework \DB \Ddl \Table::TYPE_SMALLINT ,
145
- null ,
146
- ['unsigned ' => true , 'nullable ' => false , 'default ' => '0 ' ],
147
- 'Entity Type ID '
148
- )
149
124
->addColumn (
150
125
'attribute_id ' ,
151
126
\Magento \Framework \DB \Ddl \Table::TYPE_SMALLINT ,
@@ -237,13 +212,6 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
237
212
['identity ' => true , 'nullable ' => false , 'primary ' => true ],
238
213
'Value ID '
239
214
)
240
- ->addColumn (
241
- 'entity_type_id ' ,
242
- \Magento \Framework \DB \Ddl \Table::TYPE_SMALLINT ,
243
- null ,
244
- ['unsigned ' => true , 'nullable ' => false , 'default ' => '0 ' ],
245
- 'Entity Type ID '
246
- )
247
215
->addColumn (
248
216
'attribute_id ' ,
249
217
\Magento \Framework \DB \Ddl \Table::TYPE_SMALLINT ,
@@ -335,13 +303,6 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
335
303
['identity ' => true , 'nullable ' => false , 'primary ' => true ],
336
304
'Value ID '
337
305
)
338
- ->addColumn (
339
- 'entity_type_id ' ,
340
- \Magento \Framework \DB \Ddl \Table::TYPE_INTEGER ,
341
- null ,
342
- ['unsigned ' => true , 'nullable ' => false , 'default ' => '0 ' ],
343
- 'Entity Type ID '
344
- )
345
306
->addColumn (
346
307
'attribute_id ' ,
347
308
\Magento \Framework \DB \Ddl \Table::TYPE_SMALLINT ,
@@ -423,13 +384,6 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
423
384
['identity ' => true , 'nullable ' => false , 'primary ' => true ],
424
385
'Value ID '
425
386
)
426
- ->addColumn (
427
- 'entity_type_id ' ,
428
- \Magento \Framework \DB \Ddl \Table::TYPE_INTEGER ,
429
- null ,
430
- ['unsigned ' => true , 'nullable ' => false , 'default ' => '0 ' ],
431
- 'Entity Type ID '
432
- )
433
387
->addColumn (
434
388
'attribute_id ' ,
435
389
\Magento \Framework \DB \Ddl \Table::TYPE_SMALLINT ,
@@ -521,13 +475,6 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
521
475
['identity ' => true , 'nullable ' => false , 'primary ' => true ],
522
476
'Value ID '
523
477
)
524
- ->addColumn (
525
- 'entity_type_id ' ,
526
- \Magento \Framework \DB \Ddl \Table::TYPE_INTEGER ,
527
- null ,
528
- ['unsigned ' => true , 'nullable ' => false , 'default ' => '0 ' ],
529
- 'Entity Type ID '
530
- )
531
478
->addColumn (
532
479
'attribute_id ' ,
533
480
\Magento \Framework \DB \Ddl \Table::TYPE_SMALLINT ,
@@ -619,13 +566,6 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
619
566
['identity ' => true , 'nullable ' => false , 'primary ' => true ],
620
567
'Value ID '
621
568
)
622
- ->addColumn (
623
- 'entity_type_id ' ,
624
- \Magento \Framework \DB \Ddl \Table::TYPE_SMALLINT ,
625
- null ,
626
- ['unsigned ' => true , 'nullable ' => false , 'default ' => '0 ' ],
627
- 'Entity Type ID '
628
- )
629
569
->addColumn (
630
570
'attribute_id ' ,
631
571
\Magento \Framework \DB \Ddl \Table::TYPE_SMALLINT ,
@@ -664,10 +604,10 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
664
604
->addIndex (
665
605
$ installer ->getIdxName (
666
606
'catalog_product_entity_gallery ' ,
667
- ['entity_type_id ' , ' entity_id ' , 'attribute_id ' , 'store_id ' ],
607
+ ['entity_id ' , 'attribute_id ' , 'store_id ' ],
668
608
\Magento \Framework \DB \Adapter \AdapterInterface::INDEX_TYPE_UNIQUE
669
609
),
670
- ['entity_type_id ' , ' entity_id ' , 'attribute_id ' , 'store_id ' ],
610
+ ['entity_id ' , 'attribute_id ' , 'store_id ' ],
671
611
['type ' => \Magento \Framework \DB \Adapter \AdapterInterface::INDEX_TYPE_UNIQUE ]
672
612
)
673
613
->addIndex (
@@ -728,13 +668,6 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
728
668
['identity ' => true , 'unsigned ' => true , 'nullable ' => false , 'primary ' => true ],
729
669
'Entity ID '
730
670
)
731
- ->addColumn (
732
- 'entity_type_id ' ,
733
- \Magento \Framework \DB \Ddl \Table::TYPE_SMALLINT ,
734
- null ,
735
- ['unsigned ' => true , 'nullable ' => false , 'default ' => '0 ' ],
736
- 'Entity Type ID '
737
- )
738
671
->addColumn (
739
672
'attribute_set_id ' ,
740
673
\Magento \Framework \DB \Ddl \Table::TYPE_SMALLINT ,
@@ -810,13 +743,6 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
810
743
['identity ' => true , 'nullable ' => false , 'primary ' => true ],
811
744
'Value ID '
812
745
)
813
- ->addColumn (
814
- 'entity_type_id ' ,
815
- \Magento \Framework \DB \Ddl \Table::TYPE_SMALLINT ,
816
- null ,
817
- ['unsigned ' => true , 'nullable ' => false , 'default ' => '0 ' ],
818
- 'Entity Type ID '
819
- )
820
746
->addColumn (
821
747
'attribute_id ' ,
822
748
\Magento \Framework \DB \Ddl \Table::TYPE_SMALLINT ,
@@ -848,10 +774,10 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
848
774
->addIndex (
849
775
$ installer ->getIdxName (
850
776
'catalog_category_entity_datetime ' ,
851
- ['entity_type_id ' , ' entity_id ' , 'attribute_id ' , 'store_id ' ],
777
+ ['entity_id ' , 'attribute_id ' , 'store_id ' ],
852
778
\Magento \Framework \DB \Adapter \AdapterInterface::INDEX_TYPE_UNIQUE
853
779
),
854
- ['entity_type_id ' , ' entity_id ' , 'attribute_id ' , 'store_id ' ],
780
+ ['entity_id ' , 'attribute_id ' , 'store_id ' ],
855
781
['type ' => \Magento \Framework \DB \Adapter \AdapterInterface::INDEX_TYPE_UNIQUE ]
856
782
)
857
783
->addIndex (
@@ -912,13 +838,6 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
912
838
['identity ' => true , 'nullable ' => false , 'primary ' => true ],
913
839
'Value ID '
914
840
)
915
- ->addColumn (
916
- 'entity_type_id ' ,
917
- \Magento \Framework \DB \Ddl \Table::TYPE_SMALLINT ,
918
- null ,
919
- ['unsigned ' => true , 'nullable ' => false , 'default ' => '0 ' ],
920
- 'Entity Type ID '
921
- )
922
841
->addColumn (
923
842
'attribute_id ' ,
924
843
\Magento \Framework \DB \Ddl \Table::TYPE_SMALLINT ,
@@ -950,10 +869,10 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
950
869
->addIndex (
951
870
$ installer ->getIdxName (
952
871
'catalog_category_entity_decimal ' ,
953
- [' entity_type_id ' , 'entity_id ' , 'attribute_id ' , 'store_id ' ],
872
+ [ 'entity_id ' , 'attribute_id ' , 'store_id ' ],
954
873
\Magento \Framework \DB \Adapter \AdapterInterface::INDEX_TYPE_UNIQUE
955
874
),
956
- ['entity_type_id ' , ' entity_id ' , 'attribute_id ' , 'store_id ' ],
875
+ ['entity_id ' , 'attribute_id ' , 'store_id ' ],
957
876
['type ' => \Magento \Framework \DB \Adapter \AdapterInterface::INDEX_TYPE_UNIQUE ]
958
877
)
959
878
->addIndex (
@@ -1014,13 +933,6 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
1014
933
['identity ' => true , 'nullable ' => false , 'primary ' => true ],
1015
934
'Value ID '
1016
935
)
1017
- ->addColumn (
1018
- 'entity_type_id ' ,
1019
- \Magento \Framework \DB \Ddl \Table::TYPE_SMALLINT ,
1020
- null ,
1021
- ['unsigned ' => true , 'nullable ' => false , 'default ' => '0 ' ],
1022
- 'Entity Type ID '
1023
- )
1024
936
->addColumn (
1025
937
'attribute_id ' ,
1026
938
\Magento \Framework \DB \Ddl \Table::TYPE_SMALLINT ,
@@ -1052,10 +964,10 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
1052
964
->addIndex (
1053
965
$ installer ->getIdxName (
1054
966
'catalog_category_entity_int ' ,
1055
- ['entity_type_id ' , ' entity_id ' , 'attribute_id ' , 'store_id ' ],
967
+ ['entity_id ' , 'attribute_id ' , 'store_id ' ],
1056
968
\Magento \Framework \DB \Adapter \AdapterInterface::INDEX_TYPE_UNIQUE
1057
969
),
1058
- ['entity_type_id ' , ' entity_id ' , 'attribute_id ' , 'store_id ' ],
970
+ ['entity_id ' , 'attribute_id ' , 'store_id ' ],
1059
971
['type ' => \Magento \Framework \DB \Adapter \AdapterInterface::INDEX_TYPE_UNIQUE ]
1060
972
)
1061
973
->addIndex (
@@ -1111,13 +1023,6 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
1111
1023
['identity ' => true , 'nullable ' => false , 'primary ' => true ],
1112
1024
'Value ID '
1113
1025
)
1114
- ->addColumn (
1115
- 'entity_type_id ' ,
1116
- \Magento \Framework \DB \Ddl \Table::TYPE_SMALLINT ,
1117
- null ,
1118
- ['unsigned ' => true , 'nullable ' => false , 'default ' => '0 ' ],
1119
- 'Entity Type ID '
1120
- )
1121
1026
->addColumn (
1122
1027
'attribute_id ' ,
1123
1028
\Magento \Framework \DB \Ddl \Table::TYPE_SMALLINT ,
@@ -1149,10 +1054,10 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
1149
1054
->addIndex (
1150
1055
$ installer ->getIdxName (
1151
1056
'catalog_category_entity_text ' ,
1152
- ['entity_type_id ' , ' entity_id ' , 'attribute_id ' , 'store_id ' ],
1057
+ ['entity_id ' , 'attribute_id ' , 'store_id ' ],
1153
1058
\Magento \Framework \DB \Adapter \AdapterInterface::INDEX_TYPE_UNIQUE
1154
1059
),
1155
- ['entity_type_id ' , ' entity_id ' , 'attribute_id ' , 'store_id ' ],
1060
+ ['entity_id ' , 'attribute_id ' , 'store_id ' ],
1156
1061
['type ' => \Magento \Framework \DB \Adapter \AdapterInterface::INDEX_TYPE_UNIQUE ]
1157
1062
)
1158
1063
->addIndex (
@@ -1208,13 +1113,6 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
1208
1113
['identity ' => true , 'nullable ' => false , 'primary ' => true ],
1209
1114
'Value ID '
1210
1115
)
1211
- ->addColumn (
1212
- 'entity_type_id ' ,
1213
- \Magento \Framework \DB \Ddl \Table::TYPE_SMALLINT ,
1214
- null ,
1215
- ['unsigned ' => true , 'nullable ' => false , 'default ' => '0 ' ],
1216
- 'Entity Type ID '
1217
- )
1218
1116
->addColumn (
1219
1117
'attribute_id ' ,
1220
1118
\Magento \Framework \DB \Ddl \Table::TYPE_SMALLINT ,
@@ -1246,10 +1144,10 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
1246
1144
->addIndex (
1247
1145
$ installer ->getIdxName (
1248
1146
'catalog_category_entity_varchar ' ,
1249
- ['entity_type_id ' , ' entity_id ' , 'attribute_id ' , 'store_id ' ],
1147
+ ['entity_id ' , 'attribute_id ' , 'store_id ' ],
1250
1148
\Magento \Framework \DB \Adapter \AdapterInterface::INDEX_TYPE_UNIQUE
1251
1149
),
1252
- ['entity_type_id ' , ' entity_id ' , 'attribute_id ' , 'store_id ' ],
1150
+ ['entity_id ' , 'attribute_id ' , 'store_id ' ],
1253
1151
['type ' => \Magento \Framework \DB \Adapter \AdapterInterface::INDEX_TYPE_UNIQUE ]
1254
1152
)
1255
1153
->addIndex (
@@ -4659,7 +4557,6 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
4659
4557
);
4660
4558
$ installer ->getConnection ()
4661
4559
->createTable ($ table );
4662
-
4663
4560
$ installer ->endSetup ();
4664
4561
4665
4562
}
0 commit comments