Skip to content

Commit

Permalink
Merge pull request #83 from magento-arcticfoxes/B2B-1666
Browse files Browse the repository at this point in the history
B2B-1665: Add Primary Key on Magento B2B DB Tables
  • Loading branch information
joanhe authored Mar 5, 2021
2 parents 62a4643 + eb16ac6 commit e5f5ee7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions InventoryDistanceBasedSourceSelection/etc/db_schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,17 @@
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
<table name="inventory_geoname" resource="default" engine="innodb">
<column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="true"
comment="entity id"/>
<column xsi:type="varchar" name="country_code" nullable="false" length="64"/>
<column xsi:type="varchar" name="postcode" nullable="false" length="64"/>
<column xsi:type="varchar" name="city" nullable="false" length="180"/>
<column xsi:type="varchar" name="region" nullable="false" length="100"/>
<column xsi:type="varchar" name="province" nullable="false" length="64"/>
<column xsi:type="double" name="latitude" nullable="false" />
<column xsi:type="double" name="longitude" nullable="false"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="entity_id"/>
</constraint>
</table>
</schema>
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"inventory_geoname": {
"column": {
"entity_id": true,
"country_code": true,
"zip_code": true,
"city": true,
Expand All @@ -9,6 +10,9 @@
"latitude": true,
"longitude": true,
"postcode": true
},
"constraint": {
"PRIMARY": true
}
}
}

0 comments on commit e5f5ee7

Please sign in to comment.