Skip to content

Commit

Permalink
Dep updates (#12)
Browse files Browse the repository at this point in the history
* Upgrade `micrate` to avoid needing to set `DATABASE_URL` all the time
  • Loading branch information
Blacksmoke16 authored Feb 22, 2024
1 parent 9b2c148 commit d92e69c
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Check Spelling
uses: crate-ci/[email protected].0
uses: crate-ci/[email protected].2
check_format:
runs-on: ubuntu-latest
container:
Expand Down
2 changes: 1 addition & 1 deletion shard.lock
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ shards:

micrate:
git: https://github.com/amberframework/micrate.git
version: 0.15.0
version: 0.15.1

mysql:
git: https://github.com/crystal-lang/crystal-mysql.git
Expand Down
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dependencies:
version: ~> 0.26.0
micrate:
github: amberframework/micrate
version: ~> 0.15.0
version: ~> 0.15.1

development_dependencies:
ameba:
Expand Down
2 changes: 0 additions & 2 deletions spec/spec_helper.cr
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ DATABASE = DB.open ENV["DATABASE_URL"]
require "./integration_test_case"

Spec.before_suite do
# TODO: Remove this once https://github.com/amberframework/micrate/pull/88 is resolved.
Micrate.connection_url = ENV["DATABASE_URL"]
Micrate.up DATABASE
end

Expand Down
2 changes: 0 additions & 2 deletions src/commands/db_migrate.cr
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ require "micrate"
@[ADI::Register]
class Blog::Commands::DBMigrate < ACON::Command
protected def execute(input : ACON::Input::Interface, output : ACON::Output::Interface) : ACON::Command::Status
# TODO: Remove this once https://github.com/amberframework/micrate/pull/88 is resolved.
Micrate.connection_url = ENV["DATABASE_URL"]
Micrate::Cli.run_up

Status::SUCCESS
Expand Down

0 comments on commit d92e69c

Please sign in to comment.