mirror of
https://github.com/strapi/strapi.git
synced 2025-11-11 15:49:50 +00:00
commit
b56df832c6
@ -9,7 +9,7 @@ const getDialectClass = client => {
|
|||||||
case 'sqlite':
|
case 'sqlite':
|
||||||
return require('./sqlite');
|
return require('./sqlite');
|
||||||
default:
|
default:
|
||||||
throw new Error(`Unknow dialect ${client}`);
|
throw new Error(`Unknown dialect ${client}`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -390,7 +390,7 @@ const createJoinTable = (metadata, { attributeName, attribute, meta }) => {
|
|||||||
const targetMeta = metadata.get(attribute.target);
|
const targetMeta = metadata.get(attribute.target);
|
||||||
|
|
||||||
if (!targetMeta) {
|
if (!targetMeta) {
|
||||||
throw new Error(`Unknow target ${attribute.target}`);
|
throw new Error(`Unknown target ${attribute.target}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
const joinTableName = _.snakeCase(`${meta.tableName}_${attributeName}_links`);
|
const joinTableName = _.snakeCase(`${meta.tableName}_${attributeName}_links`);
|
||||||
|
|||||||
@ -177,7 +177,7 @@ const getColumnType = attribute => {
|
|||||||
return { type: 'boolean' };
|
return { type: 'boolean' };
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
throw new Error(`Unknow type ${attribute.type}`);
|
throw new Error(`Unknown type ${attribute.type}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@ -143,7 +143,7 @@ async function checkTemplateContentsStructure(templateContentsPath) {
|
|||||||
await checkPathContents(itemPath, nextParents);
|
await checkPathContents(itemPath, nextParents);
|
||||||
} else {
|
} else {
|
||||||
throw Error(
|
throw Error(
|
||||||
`Illegal template structure, unknow file ${chalk.green(nextParents.join('/'))}`
|
`Illegal template structure, unknown file ${chalk.green(nextParents.join('/'))}`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user