NAME
Mojolicious::Command::clear_database - Drop and recreate configured database
SYNOPSIS
Usage: APPLICATION clear_database [OPTIONS]
Options:
--yes Clear database
DESCRIPTION
This command drops and recreates the configured database.
It is intentionally noisy and waits 10 seconds before continuing, to give you a chance to abort with CTRL+C.
Use this only in development/testing environments.
CONFIGURATION
The command uses C::config->{DbAccess} keys, including:
NAME database to drop/recreate
CLEAN_USER privileged user allowed to drop/create databases
CLEAN_PASS password for CLEAN_USER
USER application role to (re)create
PASS password for USER
ROOT postgres password used to create extensions
OPTIONS
--yesPerform the operation. Without this flag the command exits immediately.
METHODS
run
Implements the command.