File manager - Edit - /usr/local/lib/node_modules/knex-migrator/node_modules/knex/lib/migrate/stub/ts.stub
Back
import * as Knex from "knex"; <% if (d.tableName) { %> export async function up(knex: Knex): Promise<Knex.SchemaBuilder> { return knex.schema.createTable("<%= d.tableName %>", (t: Knex.AlterTableBuilder) => { t.increments(); t.timestamps(); }); } <% } else { %> export async function up(knex: Knex): Promise<void> { } <% } %> <% if (d.tableName) { %> export async function down(knex: Knex): Promise<Knex.SchemaBuilder> { return knex.schema.dropTable("<%= d.tableName %>"); } <% } else { %> export async function down(knex: Knex): Promise<void> { } <% } %>
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings