How to create more than 1 table in Migration? |
I followed the guideline here:
Database Manipulation and Database Forge https://codeigniter4.github.io/CodeIgnit...forge.html I managed to run the migration, and successfully created 1 table with necessary fields. All files are duly placed inside app/Database/Migrations. So my questions right now are; 1. How to create more than 1 table? (in just 1 Migration file) 2. What is really up() and down() for? (is it a must? can I write a custom method instead?) Thank you. #codeigniter4 #forge #migration |
Messages In This Thread |
How to create more than 1 table in Migration? - by mshahrim - 01-09-2021, 05:56 AM
RE: How to create more than 1 table in Migration? - by InsiteFX - 01-09-2021, 09:35 PM
RE: How to create more than 1 table in Migration? - by pankaj11 - 01-25-2021, 12:07 AM
|