InfyOmLabs / laravel-generator

API and Admin Panel CRUD Generator for Laravel.
https://www.infyom.com/open-source
MIT License
3.79k stars 812 forks source link

Don`t delete after rollback from migrations(SQL) table #786

Closed 7dir closed 4 years ago

7dir commented 4 years ago
$ php artisan migrate:refresh
Rolling back: 2019_12_12_162159_create_group_in_mails_table
Rolled back:  2019_12_12_162159_create_group_in_mails_table (0.14 seconds)
Rolling back: 2019_12_12_161726_create_make_sub_mails_table
Rolled back:  2019_12_12_161726_create_make_sub_mails_table (0.02 seconds)
Rolling back: 2019_12_12_144155_create_subs_groups_table
Rolled back:  2019_12_12_144155_create_subs_groups_table (0.05 seconds)
Rolling back: 2019_12_12_143839_create_subs_emails_table
Rolled back:  2019_12_12_143839_create_subs_emails_table (0.03 seconds)
Migration not found: 2019_12_12_142916_create_emails_table
Migration not found: 2019_12_12_142623_create_group_emails_table
Rolling back: 2019_11_29_165440_add_subscribe_to_users_table
Rolled back:  2019_11_29_165440_add_subscribe_to_users_table (0 seconds)
Rolling back: 2019_11_20_161646_create_metatexts_table
Rolled back:  2019_11_20_161646_create_metatexts_table (0.03 seconds)
Rolling back: 2019_11_05_005445_create_orders_table
Rolled back:  2019_11_05_005445_create_orders_table (0.02 seconds)
Rolling back: 2019_11_01_164609_create_products_table
Rolled back:  2019_11_01_164609_create_products_table (0.03 seconds)
Rolling back: 2019_11_01_161307_create_line_items_table
Rolled back:  2019_11_01_161307_create_line_items_table (0.04 seconds)
Rolling back: 2019_11_01_161025_create_carts_table
Rolled back:  2019_11_01_161025_create_carts_table (0.04 seconds)
Rolling back: 2019_11_01_131827_create_cats_table
Rolled back:  2019_11_01_131827_create_cats_table (0.03 seconds)
Rolling back: 2019_11_01_122105_create_sessions_table
Rolled back:  2019_11_01_122105_create_sessions_table (0.02 seconds)
Rolling back: 2019_10_28_220545_create_menus_table
Rolled back:  2019_10_28_220545_create_menus_table (0.03 seconds)
Rolling back: 2019_10_28_174114_create_permission_tables
Rolled back:  2019_10_28_174114_create_permission_tables (0.16 seconds)
Rolling back: 2019_08_19_000000_create_failed_jobs_table
Rolled back:  2019_08_19_000000_create_failed_jobs_table (0.02 seconds)
Rolling back: 2018_08_08_100000_create_telescope_entries_table
Rolled back:  2018_08_08_100000_create_telescope_entries_table (0.4 seconds)
Rolling back: 2014_10_12_100000_create_password_resets_table
Rolled back:  2014_10_12_100000_create_password_resets_table (0.02 seconds)
Rolling back: 2014_10_12_000000_create_users_table
Rolled back:  2014_10_12_000000_create_users_table (0.02 seconds)
Migration not found: 2019_11_03_195306_create_orders_table
Migration not found: 2019_11_01_161613_create_orders_table
Migration not found: 2019_11_01_151259_create_products_table
Migrating: 2014_10_12_000000_create_users_table
Migrated:  2014_10_12_000000_create_users_table (0.13 seconds)
Migrating: 2014_10_12_100000_create_password_resets_table
Migrated:  2014_10_12_100000_create_password_resets_table (0.05 seconds)
Migrating: 2018_08_08_100000_create_telescope_entries_table
Migrated:  2018_08_08_100000_create_telescope_entries_table (0.31 seconds)
Migrating: 2019_08_19_000000_create_failed_jobs_table
Migrated:  2019_08_19_000000_create_failed_jobs_table (0.03 seconds)
Migrating: 2019_10_28_174114_create_permission_tables
Migrated:  2019_10_28_174114_create_permission_tables (0.71 seconds)
Migrating: 2019_10_28_220545_create_menus_table
Migrated:  2019_10_28_220545_create_menus_table (0.04 seconds)
Migrating: 2019_11_01_122105_create_sessions_table
Migrated:  2019_11_01_122105_create_sessions_table (0.11 seconds)
Migrating: 2019_11_01_131827_create_cats_table
Migrated:  2019_11_01_131827_create_cats_table (0.03 seconds)
Migrating: 2019_11_01_161025_create_carts_table
Migrated:  2019_11_01_161025_create_carts_table (0.04 seconds)
Migrating: 2019_11_01_161307_create_line_items_table
Migrated:  2019_11_01_161307_create_line_items_table (0.05 seconds)
Migrating: 2019_11_01_164609_create_products_table
Migrated:  2019_11_01_164609_create_products_table (0.04 seconds)
Migrating: 2019_11_05_005445_create_orders_table
Migrated:  2019_11_05_005445_create_orders_table (0.05 seconds)
Migrating: 2019_11_20_161646_create_metatexts_table
Migrated:  2019_11_20_161646_create_metatexts_table (0.04 seconds)
Migrating: 2019_11_29_165440_add_subscribe_to_users_table
Migrated:  2019_11_29_165440_add_subscribe_to_users_table (0.03 seconds)
Migrating: 2019_12_12_143839_create_subs_emails_table
Migrated:  2019_12_12_143839_create_subs_emails_table (0.05 seconds)
Migrating: 2019_12_12_144155_create_subs_groups_table
Migrated:  2019_12_12_144155_create_subs_groups_table (0.05 seconds)
Migrating: 2019_12_12_161726_create_make_sub_mails_table
Migrated:  2019_12_12_161726_create_make_sub_mails_table (0.05 seconds)
Migrating: 2019_12_12_162159_create_group_in_mails_table
Migrated:  2019_12_12_162159_create_group_in_mails_table (0.05 seconds)
ajayinfyom commented 4 years ago

we already mention that things in docs: https://labs.infyom.com/laravelgenerator/docs/6.0/generator-commands#rollback

If you have run migration on database, then better you rollback that migration first and then run infyom:rollback command, since it will delete migration file as well. Otherwise laravel can throw error about missing migration files.