![]() |
Hi. There is a namespaces support for migrations
Code: php spark migrate -n 'Acme\Blog' but there is no namespaces support for seeds Code: php spark db:seed TestSeeder I am separating common things for all of my projects into special namespace. There are not only tables, but also seeds. For example, I want to have special table with all towns zip codes, which should be common for every e-commerce website for autocomplete. Migrations and seeds could be great for this. Why is seeding part of DB and not separated as migrations? (03-20-2023, 10:12 AM)superior Wrote: See: https://forum.codeigniter.com/showthread...#pid395667 Thank you for your answer. It does not work for me. I have a fresh installation of CodeIgniter 4.3.2 and I am using PHP 8.1.12 on my Linux machine. app/Config/Autoload.php PHP Code: // ... novelist/Database/Migrations/2023-03-20-193510_Alphabet.php PHP Code: <?php novelist/Database/Seeds/Alphabet.php PHP Code: <?php Command: Code: php spark db:seed Novelist\Database\Seeds\Alphabet Am I doing something wrong? Code: php spark db:seed Novelist\\Database\\Seeds\\Alphabet See https://codeigniter4.github.io/CodeIgnit...ml#migrate (03-20-2023, 04:11 PM)kenjis Wrote: Oh, sure... It works, thank you. These informations should be added to the seeding documentation page: https://www.codeigniter.com/user_guide/d...seeds.html |
Welcome Guest, Not a member yet? Register Sign In |