Skip to content

Commit

Permalink
Remove SQLite dependency
Browse files Browse the repository at this point in the history
We've been using PostgreSQL instead for a long time.
  • Loading branch information
Splines committed Aug 14, 2024
1 parent 3158935 commit 57afd12
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 16 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
# Ignore bundler config.
/.bundle

# Ignore the default SQLite database.
/db/*.sqlite3
/db/*.sqlite3-journal
/db/csv/*
/db/backups/*
!/backups/.gitkeep
Expand Down
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ gem "shrine"
gem "sidekiq"
gem "sidekiq-cron", "~> 1.1"
gem "sprockets-rails", "~>3.5"
gem "sqlite3", "~> 1.4" # database for ActiveRecord
gem "streamio-ffmpeg"
gem "sunspot_rails", "~> 2.7"
gem "sunspot_solr"
Expand Down
2 changes: 0 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,6 @@ GEM
actionpack (>= 6.1)
activesupport (>= 6.1)
sprockets (>= 3.0.0)
sqlite3 (1.7.3-x86_64-linux)
stream (0.5.5)
streamio-ffmpeg (3.0.2)
multi_json (~> 1.8)
Expand Down Expand Up @@ -735,7 +734,6 @@ DEPENDENCIES
spring
spring-watcher-listen (~> 2.0.0)
sprockets-rails (~> 3.5)
sqlite3 (~> 1.4)
streamio-ffmpeg
sunspot_rails (~> 2.7)
sunspot_solr
Expand Down
8 changes: 0 additions & 8 deletions config/database.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# SQLite version 3.x
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
#
default: &default
adapter: postgresql
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
Expand Down Expand Up @@ -74,8 +68,6 @@ test:
migrations_paths: db/interactions_migrate

production:
# <<: *default
# database: db/development.sqlite3
primary:
adapter: <%= ENV['PRODUCTION_DATABASE_ADAPTER'] ||= 'postgresql' %>
encoding: <%= ENV['PRODUCTION_DATABASE_ENCODING'] %>
Expand Down
2 changes: 1 addition & 1 deletion docker/development/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ RUN yarn set version "${YARN_VERSION}"
RUN apt update && \
apt-get install -y --no-install-recommends \
ffmpeg imagemagick pdftk ghostscript shared-mime-info \
libarchive-tools postgresql-client-13 sqlite3 wget wait-for-it
libarchive-tools postgresql-client-13 wget wait-for-it

# Setup ImageMagick
RUN sed -i '/disable ghostscript format types/,+6d' /etc/ImageMagick-6/policy.xml
Expand Down
2 changes: 1 addition & 1 deletion docker/test/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ RUN yarn set version "${YARN_VERSION}"
RUN apt update && \
apt-get install -y --no-install-recommends \
ffmpeg imagemagick pdftk ghostscript shared-mime-info \
libarchive-tools postgresql-client-13 sqlite3 wget wait-for-it
libarchive-tools postgresql-client-13 wget wait-for-it

# Setup ImageMagick
RUN sed -i '/disable ghostscript format types/,+6d' /etc/ImageMagick-6/policy.xml
Expand Down

0 comments on commit 57afd12

Please sign in to comment.