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
+52
View File
@@ -0,0 +1,52 @@
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>;
}