mirror of
https://github.com/strapi/strapi.git
synced 2025-08-08 00:37:38 +00:00
13 lines
391 B
Plaintext
13 lines
391 B
Plaintext
![]() |
|
||
|
/**
|
||
|
* Select the `<%= tableName %>` table.
|
||
|
*/
|
||
|
|
||
|
connection.schema.table('<%= tableName %>', function (table) {
|
||
|
<% if (!_.isEmpty(attributes)) { _.forEach(attributes, function(details, attribute) { %><%= models[tableName].attributes[attribute].create %>;
|
||
|
<% }); } %>
|
||
|
}).catch(function (err) {
|
||
|
console.log('Impossible to select the `<%= tableName %>` table.');
|
||
|
console.log(err);
|
||
|
}),
|