|
220 | 220 | </index> |
221 | 221 | </table> |
222 | 222 |
|
223 | | - <table name="magefan_blog_post_relatedpost" resource="default" engine="innodb" comment="Magefan Blog Post To Post Linkage Table"> |
224 | | - <column xsi:type="int" name="post_id" padding="11" unsigned="false" nullable="false" identity="false" comment="Post ID"/> |
225 | | - <column xsi:type="int" name="related_id" padding="11" unsigned="false" nullable="false" identity="false" comment="Related Post ID"/> |
226 | | - <column xsi:type="int" name="position" padding="11" unsigned="false" nullable="false" identity="false" comment="Position"/> |
| 223 | + <table name="magefan_blog_post_relatedpost" resource="default" engine="innodb" comment="Magefan Blog Post To Post Linkage Table"> |
| 224 | + <column xsi:type="int" name="post_id" padding="11" unsigned="false" nullable="false" identity="false" comment="Post ID"/> |
| 225 | + <column xsi:type="int" name="related_id" padding="11" unsigned="false" nullable="false" identity="false" comment="Related Post ID"/> |
| 226 | + <column xsi:type="int" name="position" padding="11" unsigned="false" nullable="false" identity="false" comment="Position"/> |
227 | 227 |
|
228 | | - <constraint xsi:type="primary" referenceId="PRIMARY"> |
229 | | - <column name="post_id"/> |
230 | | - <column name="related_id"/> |
231 | | - </constraint> |
| 228 | + <constraint xsi:type="primary" referenceId="PRIMARY"> |
| 229 | + <column name="post_id"/> |
| 230 | + <column name="related_id"/> |
| 231 | + </constraint> |
232 | 232 |
|
233 | | - <constraint xsi:type="foreign" referenceId="MAGEFAN_BLOG_POST_RELATEDPOST_POST_ID" table="magefan_blog_post_relatedpost" column="post_id" referenceTable="magefan_blog_post" referenceColumn="post_id" onDelete="CASCADE"/> |
| 233 | + <constraint xsi:type="foreign" referenceId="MAGEFAN_BLOG_POST_RELATEDPOST_POST_ID_FK" |
| 234 | + table="magefan_blog_post_relatedpost" column="post_id" |
| 235 | + referenceTable="magefan_blog_post" referenceColumn="post_id" |
| 236 | + onDelete="CASCADE"/> |
234 | 237 |
|
235 | | - <index referenceId="MAGEFAN_BLOG_POST_RELATEDPRODUCT_RELATED_ID" indexType="btree"> |
236 | | - <column name="related_id"/> |
237 | | - </index> |
| 238 | + <constraint xsi:type="foreign" referenceId="MAGEFAN_BLOG_POST_RELATEDPOST_RELATED_ID_FK" |
| 239 | + table="magefan_blog_post_relatedpost" column="related_id" |
| 240 | + referenceTable="magefan_blog_post" referenceColumn="post_id" |
| 241 | + onDelete="CASCADE"/> |
| 242 | + |
| 243 | + <index indexType="btree" referenceId="MAGEFAN_BLOG_POST_RELATEDPOST_RELATED_ID"> |
| 244 | + <column name="related_id"/> |
| 245 | + </index> |
238 | 246 | </table> |
239 | 247 |
|
240 | 248 | <table name="magefan_blog_tag" resource="default" engine="innodb" comment="Magefan Blog Tag Table"> |
|
0 commit comments