mirror of
https://github.com/arthur-pbty/portfolio2023.git
synced 2026-06-04 07:46:21 +02:00
53 lines
1.0 KiB
TypeScript
53 lines
1.0 KiB
TypeScript
import { BaseCommand } from '@adonisjs/core/build/standalone';
|
|
/**
|
|
* This command reset the database by rolling back to batch 0 and then
|
|
* re-run all migrations.
|
|
*/
|
|
export default class Refresh extends BaseCommand {
|
|
static commandName: string;
|
|
static description: string;
|
|
static settings: {
|
|
loadApp: boolean;
|
|
};
|
|
/**
|
|
* Custom connection for running migrations.
|
|
*/
|
|
connection: string;
|
|
/**
|
|
* Force command execution in production
|
|
*/
|
|
force: boolean;
|
|
/**
|
|
* Perform dry run
|
|
*/
|
|
dryRun: boolean;
|
|
/**
|
|
* Run seeders
|
|
*/
|
|
seed: boolean;
|
|
/**
|
|
* Disable advisory locks
|
|
*/
|
|
disableLocks: boolean;
|
|
/**
|
|
* Converting command properties to arguments
|
|
*/
|
|
private getArgs;
|
|
/**
|
|
* Reset all migrations
|
|
*/
|
|
private resetMigrations;
|
|
/**
|
|
* Run migrations
|
|
*/
|
|
private runMigrations;
|
|
/**
|
|
* Run seeders
|
|
*/
|
|
private runDbSeed;
|
|
/**
|
|
* Handle command
|
|
*/
|
|
run(): Promise<void>;
|
|
}
|