The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
| class MigrateOrdersAndProducts extends Seeder | |
| { | |
| protected $users; | |
| protected $orders; | |
| public function __construct() { | |
| $this->users = []; | |
| $this->orders = []; | |
| } |
| class NewTableSeeder extends ImportSeeder | |
| { | |
| public function run() | |
| { | |
| // Set up connections | |
| $this->oldConnection = 'old_mysql'; | |
| $this->newConnection = 'new_mysql'; | |
| // Set number of records to migrate, useful for limiting | |
| // the number of imported records during development |