Closed antonkomarev closed 5 years ago
Console command name should be intuitive. Installation is completed, but some more preparations should be done.
config
word might be confusing because configuration is more about changing configuration files, and not preparing database structure.
Name it in default Artisan make
namespace:
artisan make:love-reacterable-migration
artisan make:love-reactable-migration
Use migration
word in love
namespace:
artisan love:make-reacterable-migration
artisan love:make-reactable-migration
Use setup
word in love
namespace:
artisan love:setup-reacterable
artisan love:setup-reactable
Reactable
or Reactant
contracts?Yes. Migration will be created only for models which implements any of these interfaces. By this way in future we will be able to run command without model
argument and see a list of all models which implements this interface (but not set-upped yet).
nullable
columns?To allow nullable
columns we should add optional --nullable
boolean argument.
It might be good to run migrate command automatically on development, and on production when migration already exists and not yet migrated, but it might be tricky. I'd prefer to hold off this feature for now.
Reacterable
Command:
Should create database migration file:
Reactant
Command:
Should create database migration file: