justbetter/statamic-eloquent-driver-globalset-migration-generator

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (0.1.0) of this package.

Creates a database migration when a new globalset is created

0.1.0 2023-06-01 14:51 UTC

This package is auto-updated.

Last update: 2024-11-23 14:30:37 UTC


README

With the release of Statamic 4.16.0 and Eloquent driver 4.4.0 this is no longer needed. We can now set the global sets in the config. This creates a file with settings on creating a global. This will tell Statamic on other environments that this global exists. The data of that global will still be stored in it's own table when set to eloquent.

Statamic Eloquent Driver Globalset Migration Generator

When you're using the Statamic Eloquent Driver creating a new globalset will result in a new entry in the global_sets table. If you're working with multiple environments like DTAP; that new entry isn't visible on the next environment in the row after committing your changes. This package aims to fix that problem by creating a database migration for it. This way you can commit the migration and the entry will be made when you run php artisan migrate on deployment. More info: #128

Installation

composer require justbetter/statamic-eloquent-driver-globalset-migration-generator

License

The MIT License (MIT). Please see License File for more information.