mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-04-10 12:16:30 +00:00
Sqlx Cli: Added force flag to drop database for postgres (#2873)
* Updated ahash so it can compile on mac * Updated MigrateDatabase Trait + related functions * Postgres force drop database flag impl * Update migrate.rs * Reverted MigrateDatabase Trait * Update migrate.rs * Update migrate.rs * Added force drop database fn impl * Add Migrate Error * Fixed changed function name
This commit is contained in:
@@ -76,6 +76,10 @@ pub enum DatabaseCommand {
|
||||
|
||||
#[clap(flatten)]
|
||||
connect_opts: ConnectOpts,
|
||||
|
||||
/// PostgreSQL only: force drops the database.
|
||||
#[clap(long, short, default_value = "false")]
|
||||
force: bool,
|
||||
},
|
||||
|
||||
/// Drops the database specified in your DATABASE_URL, re-creates it, and runs any pending migrations.
|
||||
@@ -88,6 +92,10 @@ pub enum DatabaseCommand {
|
||||
|
||||
#[clap(flatten)]
|
||||
connect_opts: ConnectOpts,
|
||||
|
||||
/// PostgreSQL only: force drops the database.
|
||||
#[clap(long, short, default_value = "false")]
|
||||
force: bool,
|
||||
},
|
||||
|
||||
/// Creates the database specified in your DATABASE_URL and runs any pending migrations.
|
||||
|
||||
Reference in New Issue
Block a user