mirror of
https://github.com/arthur-pbty/portfolio2023.git
synced 2026-06-04 15:56:24 +02:00
44 lines
1.1 KiB
TypeScript
44 lines
1.1 KiB
TypeScript
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>;
|
|
}
|