Initial commit
This commit is contained in:
22
node_modules/knex/lib/migrations/migrate/stub/js.stub
generated
vendored
Executable file
22
node_modules/knex/lib/migrations/migrate/stub/js.stub
generated
vendored
Executable file
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* @param { import("knex").Knex } knex
|
||||
* @returns { Promise<void> }
|
||||
*/
|
||||
exports.up = function(knex) {
|
||||
<% if (d.tableName) { %>
|
||||
return knex.schema.createTable("<%= d.tableName %>", function(t) {
|
||||
t.increments();
|
||||
t.timestamp();
|
||||
});
|
||||
<% } %>
|
||||
};
|
||||
|
||||
/**
|
||||
* @param { import("knex").Knex } knex
|
||||
* @returns { Promise<void> }
|
||||
*/
|
||||
exports.down = function(knex) {
|
||||
<% if (d.tableName) { %>
|
||||
return knex.schema.dropTable("<%= d.tableName %>");
|
||||
<% } %>
|
||||
};
|
||||
Reference in New Issue
Block a user