haruncpi / laravel-user-activity

Monitor user activity easily!
https://laravelarticle.com/laravel-user-activity
424 stars 53 forks source link

php artisan user-activity:install runs all migration files? #40

Open krognome opened 1 year ago

krognome commented 1 year ago

One thing I do not understand is why anyone would ever want to delete all of their data when installing a new package? It seems like this install command tried to run all of my migration files which if I did that live would delete all of the data in my database. Why does Laravel have this as the default for getting new migrations up? Makes no sense to me. I know I can run each migration by itself which I am going to have to edit the install command for this package so I can push it live or just do each step manually myself. I have 2 separate websites and databases for my project so even if I whipe my dev server data it will not be the end of the world. I initially wanted to just use svn to push new packages to my live site but that did not work because of some of the autoload files and things for composer and laravel so now I just push new models, livewire components etc pretty much everything but packages live through SVN but I run these package commands on my live site to get new packages up.

I guess the best solution for all of this on my end is to figure out how to get these autoload files to work well live and dev so I can install and test dev then push from dev to live via svn.