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