From 9bb78649032cd55242eccedabddc3f07829acd0d Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Mon, 5 Aug 2024 19:01:46 +1000 Subject: [PATCH] Remove custom hanami DB commands --- bin/hanami | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/bin/hanami b/bin/hanami index b890cb6..55d9170 100755 --- a/bin/hanami +++ b/bin/hanami @@ -4,26 +4,7 @@ require "bundler/setup" require "hanami/cli" -# Hanami 2.0 does does not officially include database integration. However, much of the required -# work is already done and included in the gem. -# -# This CLI shim activates the database commands so we can manage our app database. - -Hanami::CLI.tap do |cli| - cli.register "db create", Hanami::CLI::Commands::App::DB::Create - cli.register "db create_migration", Hanami::CLI::Commands::App::DB::CreateMigration - cli.register "db drop", Hanami::CLI::Commands::App::DB::Drop - cli.register "db migrate", Hanami::CLI::Commands::App::DB::Migrate - cli.register "db setup", Hanami::CLI::Commands::App::DB::Setup - cli.register "db reset", Hanami::CLI::Commands::App::DB::Reset - cli.register "db rollback", Hanami::CLI::Commands::App::DB::Rollback - cli.register "db sample_data", Hanami::CLI::Commands::App::DB::SampleData - cli.register "db seed", Hanami::CLI::Commands::App::DB::Seed - cli.register "db structure dump", Hanami::CLI::Commands::App::DB::Structure::Dump - cli.register "db version", Hanami::CLI::Commands::App::DB::Version -end - Hanami::CLI::Bundler.require(:cli) cli = Dry::CLI.new(Hanami::CLI) -cli.call \ No newline at end of file +cli.call