How to upgrade migrating from saving the data in Laravel?

In the process of developing the update of migration, changing the structure of the database.
But something is clearly not doing so... update blows all the records to hell(
Have hands to do it... nekomilfo..
poke pliz in docks how to do the correct update file-based migration?
Add there a column... or add the unique if at the beginning missed.
Very grateful.
July 12th 19 at 17:31
2 answers
July 12th 19 at 17:33
Check that in the migration file using the correct method.

To create the tables used:
Schema::create();
To update the tables using:
Schema::table();

To generate a migration to update the table, you can use the command:
$ php artisan make:migration migration_name --table="table_name"
July 12th 19 at 17:35
Update without loss is impossible. But it is really and simply create a new migration every time you want to roll out the updates: create a new migration and there use Schema::table
thanks for the advice. I've seen it. you are developing a project with the same tools and almost... I would like to get some tips - regarding the implementation of registration, authorization, authentication, especially as you married larval and angular in this context. - lilliana_Schmel commented on July 12th 19 at 17:38
: Ready-made solutions as such - no, but there are a lot of instructions and guides.. since the beginning of may, it would seem that everything is difficult, actually not. What fails to "make friends"? - Nicolette.Bode commented on July 12th 19 at 17:41
: can incorrect looking for? I mean a lot of instructions and guides... yet only meet Hindu options on YouTube... well unless it's https://scotch.io/tutorials/token-based-authentica... seemed sane...
sorry for Megabucks, but maybe it'll help to need rails to get up.
The point is that I somehow mastered larval... at least at that level, requiring a task.. check, crud, the site works. But I really like when without reloading the page everything works... well, that's a fad. Chose angular. Almost all moved... (although I swear a feeling that screwing around... it's a duplication of all work).
I have a very big project in mind, your mini-office. Import/export office documents, dates, statistics, graphs, queries the api to third-party resources... and you want to make it look really "expensive". Impressed possible third-party viewers. So I probably all while still learning, although technology and versions significantly outperform me).
Coming back to the point. What we have in the balance:
Larval to use exclusively as a bundle with the database. (although there is also a cut diamond comes in... use the old mysql classic server, and most of the solutions found using node.js and some MEAN).
Jade (although was surprised to learn that he's already Pug) build templates and render them gulp.
Plus Angular ui-router the whole look.
In General that everything works, but not enough of a launching pad... to draw all of this check, test rights, regulation of the duration of the sessions... Clearly it is not for this angular exists and it should do larabel (and successfully makes it out of the box).
Uh, confused here, in theory I suppose.
Once again, sorry for Megabucks... I will be glad if something useful share... - lilliana_Schmel commented on July 12th 19 at 17:44

Find more questions by tags Laravel