Re: laravel -- php -- some basic questions..

Dan McCullough <[email protected]>
Newsgroups gmane.comp.php.general
Message-ID <CANG11hMDO_mCh73qiwB7PrLA9P8nZdV4_9ijKVk034v5fBk-eg@mail.gmail.com>
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 <[email protected]> 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

   -
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.