Skip to content

Commit 59ec4cf

Browse files
author
Joan He
committed
MAGETWO-72487: Move Signifyd to CE
-- Resolve merge conflict with declarative schema change
1 parent 355eef6 commit 59ec4cf

File tree

2 files changed

+70
-0
lines changed

2 files changed

+70
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:setup:Model/Declaration/Schema/etc/schema.xsd">
10+
<table name="signifyd_case" resource="default" engine="innodb" comment="signifyd_case">
11+
<column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="true"
12+
comment="Entity_id"/>
13+
<column xsi:type="int" name="order_id" padding="10" unsigned="true" nullable="true" identity="false"
14+
comment="Order_id"/>
15+
<column xsi:type="int" name="case_id" padding="10" unsigned="true" nullable="true" identity="false"
16+
comment="Case_id"/>
17+
<column xsi:type="boolean" name="guarantee_eligible" nullable="true" comment="Guarantee_eligible"/>
18+
<column xsi:type="varchar" name="guarantee_disposition" nullable="true" length="32" default="PENDING"
19+
comment="Guarantee_disposition"/>
20+
<column xsi:type="varchar" name="status" nullable="true" length="32" default="PENDING" comment="Status"/>
21+
<column xsi:type="int" name="score" padding="10" unsigned="true" nullable="true" identity="false"
22+
comment="Score"/>
23+
<column xsi:type="text" name="associated_team" nullable="true" comment="Associated_team"/>
24+
<column xsi:type="varchar" name="review_disposition" nullable="true" length="32" comment="Review_disposition"/>
25+
<column xsi:type="timestamp" name="created_at" on_update="false" nullable="true" comment="Created_at"/>
26+
<column xsi:type="timestamp" name="updated_at" on_update="false" nullable="true" comment="Updated_at"/>
27+
<constraint xsi:type="primary" name="PRIMARY">
28+
<column name="entity_id"/>
29+
</constraint>
30+
<constraint xsi:type="foreign" name="SIGNIFYD_CASE_ORDER_ID_SALES_ORDER_ENTITY_ID" table="signifyd_case"
31+
column="order_id" referenceTable="sales_order" referenceColumn="entity_id" onDelete="SET NULL"/>
32+
<constraint xsi:type="unique" name="SIGNIFYD_CASE_ORDER_ID">
33+
<column name="order_id"/>
34+
</constraint>
35+
<constraint xsi:type="unique" name="SIGNIFYD_CASE_CASE_ID">
36+
<column name="case_id"/>
37+
</constraint>
38+
</table>
39+
<table name="sales_order_grid" resource="default" comment="Sales Flat Order Grid">
40+
<column xsi:type="varchar" name="signifyd_guarantee_status" nullable="true" length="32"/>
41+
</table>
42+
</schema>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"signifyd_case": {
3+
"column": {
4+
"entity_id": true,
5+
"order_id": true,
6+
"case_id": true,
7+
"guarantee_eligible": true,
8+
"guarantee_disposition": true,
9+
"status": true,
10+
"score": true,
11+
"associated_team": true,
12+
"review_disposition": true,
13+
"created_at": true,
14+
"updated_at": true
15+
},
16+
"constraint": {
17+
"PRIMARY": true,
18+
"SIGNIFYD_CASE_ORDER_ID_SALES_ORDER_ENTITY_ID": true,
19+
"SIGNIFYD_CASE_ORDER_ID": true,
20+
"SIGNIFYD_CASE_CASE_ID": true
21+
}
22+
},
23+
"sales_order_grid": {
24+
"column": {
25+
"signifyd_guarantee_status": true
26+
}
27+
}
28+
}

0 commit comments

Comments
 (0)