mirror of
https://github.com/knex/knex.git
synced 2025-07-13 12:00:55 +00:00
16 lines
322 B
Plaintext
16 lines
322 B
Plaintext
![]() |
|
||
|
export const up = async (knex) => {
|
||
|
<% if (d.tableName) { %>
|
||
|
await knex.schema.createTable("<%= d.tableName %>", function(t) {
|
||
|
t.increments();
|
||
|
t.timestamp();
|
||
|
});
|
||
|
<% } %>
|
||
|
};
|
||
|
|
||
|
export const down = async (knex) => {
|
||
|
<% if (d.tableName) { %>
|
||
|
await knex.schema.dropTable("<%= d.tableName %>");
|
||
|
<% } %>
|
||
|
};
|