PHPackages                             baserproject/bc-db-migrator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. baserproject/bc-db-migrator

ActiveCakephp-plugin

baserproject/bc-db-migrator
===========================

BcDbMigrator plugin for baserCMS

5.2.0(4mo ago)0292[2 issues](https://github.com/baserproject/BcDbMigrator/issues)MITPHP

Since Dec 5Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/baserproject/BcDbMigrator)[ Packagist](https://packagist.org/packages/baserproject/bc-db-migrator)[ Docs](https://basercms.net)[ RSS](/packages/baserproject-bc-db-migrator/feed)WikiDiscussions 5.2.x Synced 1mo ago

READMEChangelogDependenciesVersions (11)Used By (0)

BcDbMigrator plugin for baserCMS
================================

[](#bcdbmigrator-plugin-for-basercms)

Database Migrator for baserCMS

Installation
------------

[](#installation)

You can install this plugin into your baserCMS application using [composer](https://getcomposer.org).

The recommended way to install composer packages is:

```
composer require baserproject/bc-db-migrator

```

Documentation
-------------

[](#documentation)

See [baserCMS４のデータベースを変換](https://baserproject.github.io/5/migration_db_from_ver4)

コマンドライン実行
---------

[](#コマンドライン実行)

コマンドラインからマイグレーションを実行できます。

`bin/cake bc_db_migrator `

### 引数

[](#引数)

- `path`（必須）: baserCMS 4 のバックアップZipファイルのパス。絶対パス・相対パスどちらでも指定可能です。

### 実行例

[](#実行例)

```
bin/cake bc_db_migrator basercms4_backup.zip
```

### 出力

[](#出力)

- **データベース**: データは現在のbaserCMSデータベースに直接インポートされます。
- **ファイル**: 変換されたCSVファイルとスキーマファイルは、`tmp/baserbackup__.zip` に圧縮されて保存されます（例: `/var/www/html/tmp/baserbackup_5.1.0_20230101_120000.zip`）。保存先パスはコンソールに出力されます。
- **一時ディレクトリ**: マイグレーション完了後、作業用一時ディレクトリ（`tmp/dbmigrator/`）は自動的に削除されます。

### パスワードの取り扱い

[](#パスワードの取り扱い)

ユーザーパスワードの移行方法は、環境変数 `HASH_TYPE` の設定により異なります。

- **`HASH_TYPE` が `sha1` の場合**:
    バックアップデータのパスワードがそのまま保持されます。マイグレーション後も従来のパスワードでログイン可能です。
- **上記以外の場合**:
    セキュリティ上の理由から、すべてのユーザーのパスワードが新しいランダムな文字列に変更されます。新しいパスワードはマイグレーション完了時にコンソールに表示されますので、ログイン後に必ず変更してください。

License
-------

[](#license)

Lincensed under the MIT lincense since version 2.0

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance79

Regular maintenance activity

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~88 days

Recently: every ~142 days

Total

10

Last Release

99d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fde032c594b68cb7359d0991388bfb4cc1b8083b45d120aa0c1cd5d46285b1e6?d=identicon)[baserproject](/maintainers/baserproject)

---

Top Contributors

[![ryuring](https://avatars.githubusercontent.com/u/90106?v=4)](https://github.com/ryuring "ryuring (70 commits)")[![kaburk](https://avatars.githubusercontent.com/u/310333?v=4)](https://github.com/kaburk "kaburk (2 commits)")

### Embed Badge

![Health badge](/badges/baserproject-bc-db-migrator/health.svg)

```
[![Health](https://phpackages.com/badges/baserproject-bc-db-migrator/health.svg)](https://phpackages.com/packages/baserproject-bc-db-migrator)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
