{"repo":"babenkoivan/elastic-migrations","free":true,"listed":false,"github":"https://github.com/babenkoivan/elastic-migrations","clone":"git clone https://github.com/babenkoivan/elastic-migrations.git","description":"Elasticsearch migrations for Laravel","language":"PHP","stars":196,"topics":["laravel","elasticsearch","migrations","php"],"license":"MIT","category":"data-pipelines","readme_excerpt":"Elastic Migrations --- Elastic Migrations for Laravel allow you to easily modify and share indices schema across the application's environments. Contents Compatibility Installation Configuration Writing Migrations Running Migrations Reverting Migrations Starting Over Migration Status Zero Downtime Migration Troubleshooting Compatibility The current version of Elastic Migrations has been tested with the following configuration: PHP 8.2 Elasticsearch 9.x Laravel 12.x If your project uses older Elasticsearch, Laravel, or PHP version check the previous major version of the package. Installation The library can be installed via Composer: If you want to use Elastic Migrations with Lumen framework check this guide. Configuration Elastic Migrations uses babenkoivan/elastic-client as a dependency. To change the client settings you need to publish the configuration file first: In the newly created config/elastic.client.php file you can define the default connection name and describe multiple connections using configuration hashes. Please, refer to the elastic-client documentation for more details. It is recommended to publish Elastic Migrations settings as well: This will create the config/elastic.migrations.php file, which allows you to configure the following options: storage.default path - the default location of your migration files database.table - the table name that holds executed migration names database.connection - the database connection you wish to use prefixes.index - the ","default_branch":null,"files":null,"tree":[],"storefront":"/r/babenkoivan","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/babenkoivan/elastic-migrations/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}