@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
2 lines • 596 B
JavaScript
import e from"../helpers/default-values-equal.mjs";import t from"../helpers/foreign-keys-equal.mjs";const n=(n,r)=>{let i={};return n.type!==r.type&&(i.type={from:r.type,to:n.type}),n.nullable!==r.nullable&&(i.nullable={from:r.nullable,to:n.nullable}),e(n.default,r.default)||(i.default={from:r.default,to:n.default}),t(n.foreignKey,r.foreignKey)||(i.foreignKey={from:r.foreignKey,to:n.foreignKey}),n.unique!==r.unique&&(i.unique={from:r.unique,to:n.unique}),Object.keys(i).length>0?{type:`modify`,column:n,changes:i}:null};export{n as default};
//# sourceMappingURL=determine-column-mods.mjs.map