UNPKG

@lucidcms/core

Version:

The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.

2 lines 693 B
const e=e=>({async up(t){await t.schema.createTable(`lucid_locales`).addColumn(`code`,e.getDataType(`text`),e=>e.primaryKey()).addColumn(`is_deleted`,e.getDataType(`boolean`),t=>t.defaultTo(e.formatDefaultValue(`boolean`,e.getDefault(`boolean`,`false`)))).addColumn(`is_deleted_at`,e.getDataType(`timestamp`),e=>e.defaultTo(null)).addColumn(`created_at`,e.getDataType(`timestamp`),t=>t.defaultTo(e.formatDefaultValue(`timestamp`,e.getDefault(`timestamp`,`now`)))).addColumn(`updated_at`,e.getDataType(`timestamp`),t=>t.defaultTo(e.formatDefaultValue(`timestamp`,e.getDefault(`timestamp`,`now`)))).execute()},async down(e){}});export{e as default}; //# sourceMappingURL=00000001-locales.mjs.map