This commit is contained in:
Tutur33
2023-11-24 22:35:41 +01:00
parent 3c0b507a93
commit 7644b2a0f7
45165 changed files with 4803356 additions and 3 deletions
+43
View File
@@ -0,0 +1,43 @@
import { BaseCommand } from '@adonisjs/core/build/standalone';
export default class MakeMigration extends BaseCommand {
static commandName: string;
static description: string;
static settings: {
loadApp: boolean;
};
/**
* The name of the migration file. We use this to create the migration
* file and generate the table name
*/
name: string;
/**
* Choose a custom pre-defined connection. Otherwise, we use the
* default connection
*/
connection: string;
/**
* Pre select migration directory. If this is defined, we will ignore the paths
* defined inside the config.
*/
folder: string;
/**
* Custom table name for creating a new table
*/
create: string;
/**
* Custom table name for altering an existing table
*/
table: string;
/**
* Not a valid connection
*/
private printNotAValidConnection;
/**
* Returns the directory for creating the migration file
*/
private getDirectory;
/**
* Execute command
*/
run(): Promise<void>;
}