Re: laravel -- php -- some basic questions..
| From: | Dan McCullough | Date: | Wed, 01 Nov 2023 17:51:56 +0000 |
| Subject: | Re: laravel -- php -- some basic questions.. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-328301@lists.php.net to get a copy of this message | ||
Yes and No. Migrate has several options you can use install, rollback,
fresh, reset, refresh, and status. Migrations are tracked, hence why you
can roll back, refresh, etc.
So yes it's the same as inserting the schema/tables into a db, different
markup but there are tools to convert sql create, and alter commands.
Now if you use it but then go and do manual schema updates and don't make
those changes within the migration files you are going to be in for a few
headaches if you try and use migrate after.
Do you need to use it? No
Do all seasoned Laravel developers use it? No
Is it a useful tool? Yes
On Wed, Nov 1, 2023 at 1:39 PM bruce <badouglas@gmail.com> wrote:
> the cmd
> "php artisan migrate"
> apparently publishes schema to the database
>
> is this the same as inserting the schema/tables into a db/tbl within
> the database -- mysql/postgres? Or is it something different?
>
--
Thank you,
Dan
Cell: 484-459-2856
Facebook: http://www.facebook.com/dpmccullough
LinkedIn: https://www.linkedin.com/in/danmccullough
-