Skip to content

Commit

Permalink
Remove unused db commands and support code (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
timriley authored Jun 17, 2024
1 parent fb0fea8 commit 07b8c55
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 324 deletions.
14 changes: 0 additions & 14 deletions lib/hanami/cli/commands/app/command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,20 +111,6 @@ def measure(desc)
out.puts "!!! => #{desc.inspect} FAILED"
end
end

# This is NOT AVAILABLE as of the 2.0.0 release.
#
# @api private
def database
@database ||= Commands::App::DB::Utils::Database[app]
end

# This is NOT AVAILABLE as of the 2.0.0 release.
#
# @api private
def database_config
database.config
end
end
end
end
Expand Down
32 changes: 0 additions & 32 deletions lib/hanami/cli/commands/app/db/create_migration.rb

This file was deleted.

28 changes: 0 additions & 28 deletions lib/hanami/cli/commands/app/db/reset.rb

This file was deleted.

81 changes: 0 additions & 81 deletions lib/hanami/cli/commands/app/db/rollback.rb

This file was deleted.

1 change: 0 additions & 1 deletion lib/hanami/cli/commands/app/db/utils/database.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# frozen_string_literal: true

require "uri"
require_relative "database_config"

module Hanami
module CLI
Expand Down
60 changes: 0 additions & 60 deletions lib/hanami/cli/commands/app/db/utils/database_config.rb

This file was deleted.

17 changes: 0 additions & 17 deletions spec/unit/hanami/cli/commands/app/db/create_migration_spec.rb

This file was deleted.

13 changes: 0 additions & 13 deletions spec/unit/hanami/cli/commands/app/db/reset_spec.rb

This file was deleted.

78 changes: 0 additions & 78 deletions spec/unit/hanami/cli/commands/app/db/rollback_spec.rb

This file was deleted.

0 comments on commit 07b8c55

Please sign in to comment.