UNPKG

1.11 kBTypeScriptView Raw
1import { BaseCommand } from '@adonisjs/core/build/standalone';
2export default class MakeMigration extends BaseCommand {
3 static commandName: string;
4 static description: string;
5 static settings: {
6 loadApp: boolean;
7 };
8 /**
9 * The name of the migration file. We use this to create the migration
10 * file and generate the table name
11 */
12 name: string;
13 /**
14 * Choose a custom pre-defined connection. Otherwise, we use the
15 * default connection
16 */
17 connection: string;
18 /**
19 * Pre select migration directory. If this is defined, we will ignore the paths
20 * defined inside the config.
21 */
22 folder: string;
23 /**
24 * Custom table name for creating a new table
25 */
26 create: string;
27 /**
28 * Custom table name for altering an existing table
29 */
30 table: string;
31 /**
32 * Not a valid connection
33 */
34 private printNotAValidConnection;
35 /**
36 * Returns the directory for creating the migration file
37 */
38 private getDirectory;
39 /**
40 * Execute command
41 */
42 run(): Promise<void>;
43}