{"id":21433264,"url":"https://github.com/jlorente/laravel-data-migrations","last_synced_at":"2025-04-05T15:03:15.613Z","repository":{"id":38359625,"uuid":"121431601","full_name":"jlorente/laravel-data-migrations","owner":"jlorente","description":"An extension to allow you to separate data migrations from structure migrations","archived":false,"fork":false,"pushed_at":"2025-01-31T15:11:08.000Z","size":23,"stargazers_count":32,"open_issues_count":0,"forks_count":11,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T14:06:49.008Z","etag":null,"topics":["data-migration","laravel","migrations"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jlorente.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-13T20:16:56.000Z","updated_at":"2025-03-20T10:18:55.000Z","dependencies_parsed_at":"2025-01-12T21:04:03.594Z","dependency_job_id":"9446d56f-1853-4ce1-a7f7-557152b73f03","html_url":"https://github.com/jlorente/laravel-data-migrations","commit_stats":{"total_commits":18,"total_committers":4,"mean_commits":4.5,"dds":0.2222222222222222,"last_synced_commit":"58368913f305419540a7dc720a8795f822bc8012"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlorente%2Flaravel-data-migrations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlorente%2Flaravel-data-migrations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlorente%2Flaravel-data-migrations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlorente%2Flaravel-data-migrations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jlorente","download_url":"https://codeload.github.com/jlorente/laravel-data-migrations/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247353729,"owners_count":20925329,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-migration","laravel","migrations"],"created_at":"2024-11-22T23:27:02.549Z","updated_at":"2025-04-05T15:03:15.582Z","avatar_url":"https://github.com/jlorente.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Data Migrations for Laravel\n===========================\nThis extension allows you to separate data migrations from structure migrations.\n\n## Installation\n\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\nWith Composer installed, you can then install the extension using the following commands:\n\n**NOTE:** Until laravel 7.x use version 1.x. From laravel 8.0 and later use 2.x\n\n```bash\n$ php composer.phar require jlorente/laravel-data-migrations\n```\n\nor add \n\n```json\n...\n    \"require\": {\n        \"jlorente/laravel-data-migrations\": \"*\"\n    }\n```\n\nto the ```require``` section of your `composer.json` file.\n\n## Configuration\n\n1. Register the ServiceProvider in your config/app.php service provider list. This step can be skipped in Laravel 5.5+\n\nconfig/app.php\n```php\nreturn [\n    //other stuff\n    'providers' =\u003e [\n        //other stuff\n        \\Jlorente\\DataMigrations\\DataMigrationsServiceProvider::class,\n    ];\n];\n```\n\n2. Publish the new assets.\n```shell\nphp artisan vendor:publish --tag=data-migrations\n```\nThis will create the default migrations directory and the config/data-migrations.php file.\n\n## Usage\n\nBy default, the table used to store the data migrations is \"migrations_data\" table. You \ncan change the table on the config/data-migrations.php file.\n\nThe data migrations will be stored in the migrations_data folder of the database path if no \npath is specified in the command execution.\n\nThe available commands of the package are:\n\n*Create migration command*\n```shell\nphp artisan make:data-migration [name] [--path=]\n```\nThe firts time you use it the data migrations table will be created.\n\n*Run migration command*\n```shell\nphp artisan migrate-data [--path=]\n```\n\n*Rollback migration command*\n```shell\nphp artisan migrate-data:rollback [--path=]\n```\n\nThe behavior of the migrations is the same as the regular migrations.\n\n## License \nCopyright \u0026copy; 2018 José Lorente Martín \u003cjose.lorente.martin@gmail.com\u003e.\n\nLicensed under the MIT license. See LICENSE.txt for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlorente%2Flaravel-data-migrations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjlorente%2Flaravel-data-migrations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlorente%2Flaravel-data-migrations/lists"}