UNPKG

@lucidcms/core

Version:

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

2 lines 660 B
import{copy as e}from"../../i18n/copy.mjs";import t from"../../../constants/constants.mjs";import n from"../../logger/index.mjs";const r=async(r,i)=>{try{return await r.db.client.schema.dropTable(i.migration.tableName).ifExists().execute(),n.debug({message:`Table with the name of '${i.migration.tableName}' has been dropped`,scope:t.logScopes.migrations}),{data:void 0,error:void 0}}catch(t){return{data:void 0,error:{message:e(`server:core.collections.migration.table.remove.failed.message`,{data:{tableName:i.migration.tableName,errorMessage:t instanceof Error?t.message:String(t)}})}}}};export{r as default}; //# sourceMappingURL=remove-table-query.mjs.map