Skip to content

Commit ce441c6

Browse files
committed
Fix for issue #21477 sets CURRENT_TIMESTAMP and updated_at fields in the DB Schema.
1 parent 908ed15 commit ce441c6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

app/code/Magento/Integration/etc/db_schema.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
comment="Oauth consumer"/>
108108
<column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP"
109109
comment="Creation Time"/>
110-
<column xsi:type="timestamp" name="updated_at" on_update="true" nullable="false" default="0"
110+
<column xsi:type="timestamp" name="updated_at" on_update="true" nullable="false" default="CURRENT_TIMESTAMP"
111111
comment="Update Time"/>
112112
<column xsi:type="smallint" name="setup_type" padding="5" unsigned="true" nullable="false" identity="false"
113113
default="0" comment="Integration type - manual or config file"/>

app/code/Magento/Quote/etc/db_schema.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
default="0" comment="Quote Id"/>
109109
<column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP"
110110
comment="Created At"/>
111-
<column xsi:type="timestamp" name="updated_at" on_update="true" nullable="false" default="0"
111+
<column xsi:type="timestamp" name="updated_at" on_update="true" nullable="false" default="CURRENT_TIMESTAMP"
112112
comment="Updated At"/>
113113
<column xsi:type="int" name="customer_id" padding="10" unsigned="true" nullable="true" identity="false"
114114
comment="Customer Id"/>
@@ -218,7 +218,7 @@
218218
default="0" comment="Quote Id"/>
219219
<column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP"
220220
comment="Created At"/>
221-
<column xsi:type="timestamp" name="updated_at" on_update="true" nullable="false" default="0"
221+
<column xsi:type="timestamp" name="updated_at" on_update="true" nullable="false" default="CURRENT_TIMESTAMP"
222222
comment="Updated At"/>
223223
<column xsi:type="int" name="product_id" padding="10" unsigned="true" nullable="true" identity="false"
224224
comment="Product Id"/>
@@ -322,7 +322,7 @@
322322
default="0" comment="Quote Item Id"/>
323323
<column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP"
324324
comment="Created At"/>
325-
<column xsi:type="timestamp" name="updated_at" on_update="true" nullable="false" default="0"
325+
<column xsi:type="timestamp" name="updated_at" on_update="true" nullable="false" default="CURRENT_TIMESTAMP"
326326
comment="Updated At"/>
327327
<column xsi:type="text" name="applied_rule_ids" nullable="true" comment="Applied Rule Ids"/>
328328
<column xsi:type="text" name="additional_data" nullable="true" comment="Additional Data"/>
@@ -434,7 +434,7 @@
434434
default="0" comment="Quote Id"/>
435435
<column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP"
436436
comment="Created At"/>
437-
<column xsi:type="timestamp" name="updated_at" on_update="true" nullable="false" default="0"
437+
<column xsi:type="timestamp" name="updated_at" on_update="true" nullable="false" default="CURRENT_TIMESTAMP"
438438
comment="Updated At"/>
439439
<column xsi:type="varchar" name="method" nullable="true" length="255" comment="Method"/>
440440
<column xsi:type="varchar" name="cc_type" nullable="true" length="255" comment="Cc Type"/>
@@ -470,7 +470,7 @@
470470
default="0" comment="Address Id"/>
471471
<column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP"
472472
comment="Created At"/>
473-
<column xsi:type="timestamp" name="updated_at" on_update="true" nullable="false" default="0"
473+
<column xsi:type="timestamp" name="updated_at" on_update="true" nullable="false" default="CURRENT_TIMESTAMP"
474474
comment="Updated At"/>
475475
<column xsi:type="varchar" name="carrier" nullable="true" length="255" comment="Carrier"/>
476476
<column xsi:type="varchar" name="carrier_title" nullable="true" length="255" comment="Carrier Title"/>

0 commit comments

Comments
 (0)