Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jaxwilko/wn-data-migrator-plugin
A WinterCMS plugin that converts your data to flat files and rebuilds your tables from flat files
https://github.com/jaxwilko/wn-data-migrator-plugin
converts flat-files vcs
Last synced: 3 months ago
JSON representation
A WinterCMS plugin that converts your data to flat files and rebuilds your tables from flat files
- Host: GitHub
- URL: https://github.com/jaxwilko/wn-data-migrator-plugin
- Owner: jaxwilko
- License: mit
- Created: 2020-12-21T16:25:23.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-08T12:41:13.000Z (12 months ago)
- Last Synced: 2024-09-14T00:13:40.015Z (3 months ago)
- Topics: converts, flat-files, vcs
- Language: PHP
- Homepage:
- Size: 22.5 KB
- Stars: 8
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Data Migrator
Manage your data via your VCS.
## About
This plugin allows for the transportation of data by converting you tables to flat data files. Once a table has been
flattened it can then be reimported.## Install
```bash
composer require jaxwilko/datamigrator
```## Usage
Via the plugin settings page you can configure which tables you want to be flattened/migrated and specify
the directory to store the flat data files in.This plugin is used via the `artisan` cli.
| Command | Function |
|----------------|--------------------------------------------------------------|
| `data:flat` | Write your selected tables to storage |
| `data:migrate` | Read the flat files in storage and import them if necessary |After you've flattened your data, you can use your VCS of choice to commit them. This can be very useful when developing
locally and deploying to a server as after pulling down your changes you can run `php artisan data:migrate` to update
all flattened tables.## Notes
The migration system tracks when files were migrated using a sha1 hash of the migration content. If for some reason you
need to re-migrate, you can delete the migration record from the `jaxwilko_datamigrator_migrations` table.