地理情報プラグインのアンインストール方法を教えてください

公開日 2019.07.04

更新日 2019.07.04

アンインストール手順は下記の通りです。

1.地理情報コンテンツ、データベースコンテンツを削除
2.ツール>プラグインから「joruri/zplugin3-content-gis」と「joruri/zplugin3-content-webdb」を無効化
3.WebサーバーにSSHログインしbundle installを実行
$ cd /var/www/joruri
$ bundle install

4.config/database.ymlのadapterを"postgresql"に修正してunicornとdelayed_jobを再起動
$ vi config/database.yml
$ bundle exec rake unicorn:restart RAILS_ENV=production
$ bundle exec rake delayed_job:restart RAILS_ENV=production

5.地理情報コンテンツ、データベースコンテンツ関連のテーブルとマイグレーションを削除
$ bundle exec rake db:migrate SCOPE=zplugin3_content_gis VERSION=0 RAILS_ENV=production
$ rm -rf /var/www/joruri/db/migrate/*.zplugin3_content_gis.rb

$ bundle exec rake db:migrate SCOPE=zplugin3_content_webdb_engine VERSION=0 RAILS_ENV=production
$ rm -rf /var/www/joruri/db/migrate/*.zplugin3_content_webdb_engine.rb

Topへ