PHPackages                             dnadesign/migraterelations - 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. [Database &amp; ORM](/categories/database)
4. /
5. dnadesign/migraterelations

ActiveSilverstripe-module[Database &amp; ORM](/categories/database)

dnadesign/migraterelations
==========================

Migrates specific relations defined in yml.

2.0.2(7y ago)04062PHP

Since Aug 24Pushed 7y ago15 watchersCompare

[ Source](https://github.com/dnadesign/silverstripe-migraterelations)[ Packagist](https://packagist.org/packages/dnadesign/migraterelations)[ RSS](/packages/dnadesign-migraterelations/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (5)Dependencies (3)Versions (8)Used By (0)

silverstripe-migraterelations
=============================

[](#silverstripe-migraterelations)

Migrates specific silverstripe relations defined in yml

How to use
----------

[](#how-to-use)

1 - Update your classes to use the new relations.
2 - Define the fields you want to migrate in a yml file. eg:

```

---
Name: migration
---
Migrate:
 remove_table:
   0:
     table_name: AnEmptyObsoleteTable
 db_field:
   0:
     owner_current: 'CurrentOwnerClassName'
     owner_new: 'NewOwnerClassName'
     field_name_current: CurrentDBFieldName
     field_name_new: NewDBFieldName
     field_type: VARCHAR(255)
 has_one:
   0:
     owner_current: 'CurrentHasOneClassName'
     owner_new: 'NewHasOneClassName'
     field_name_current: CurrentDBFieldName
     field_name_new: NewDBFieldName
   1:
     owner_current: 'OtherCurrentHasOneClassName'
     owner_new: 'OtherNewHasOneClassName'
     field_name_current: OtherCurrentDBFieldName
     field_name_new: OtherNewDBFieldName
 many_many:
   0:
     owner_current: 'CurrentManyManyOwnerClassName'
     owner_new: 'NewManyManyOwnerClassName'
     field_name: 'RelationName'

```

3 - Run dev/tasks/MigrateRelationsTask

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 90.9% 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 ~161 days

Recently: every ~110 days

Total

6

Last Release

2745d ago

Major Versions

1.0.1 → 3.0.x-dev2017-08-23

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/81dd88cc85b2eae70dee4aee18838c3c84bfb71a491479be2b5b0e60e7365913?d=identicon)[pitchandtone](/maintainers/pitchandtone)

---

Top Contributors

[![adrexia](https://avatars.githubusercontent.com/u/984753?v=4)](https://github.com/adrexia "adrexia (10 commits)")[![jules0x](https://avatars.githubusercontent.com/u/8979741?v=4)](https://github.com/jules0x "jules0x (1 commits)")

---

Tags

silverstripemigrationsmigrate

### Embed Badge

![Health badge](/badges/dnadesign-migraterelations/health.svg)

```
[![Health](https://phpackages.com/badges/dnadesign-migraterelations/health.svg)](https://phpackages.com/packages/dnadesign-migraterelations)
```

###  Alternatives

[lulco/phoenix

Database Migrations for PHP

180329.4k4](/packages/lulco-phoenix)[jaybizzle/laravel-migrations-organiser

A Laravel package to help organise migration files.

116399.4k2](/packages/jaybizzle-laravel-migrations-organiser)[patricknelson/silverstripe-migrations

SilverStripe Database Migration module. Facilitates atomic database migrations in SilverStripe 3.x

2126.7k](/packages/patricknelson-silverstripe-migrations)[brettt89/silverstripe-garbage-collector

SilverStripe Garbage Collector module

109.6k](/packages/brettt89-silverstripe-garbage-collector)

PHPackages © 2026

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