MCPcopy Create free account
hub / github.com/adonisjs/session / MakeSessionTable

Class MakeSessionTable

commands/make_session_table.ts:16–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14 * Command to create the sessions table migration
15 */
16export default class MakeSessionTable extends BaseCommand {
17 static commandName = 'make:session-table'
18 static description = 'Create a migration for the sessions database table'
19
20 async run() {
21 const codemods = await this.createCodemods()
22 await codemods.makeUsingStub(stubsRoot, 'make/migration/sessions.stub', {
23 migration: { tableName: 'sessions', prefix: Date.now() },
24 })
25 }
26}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected