Add dummy content when running migrations |
(10-05-2015, 07:09 AM)orionstar Wrote: You can access the $this->db object so you can insert anything what you want with $this->db->insert() or $this->db->update(). Thank you for your reply. About the timestamps, I'm afraid you didn't understood me.. The documentation says: Quote:Each Migration is run in numeric order forward or backwards depending on the method taken. If I set the migration type to Timestamp, do I have to run Code: $this->migration->version(5); with the timestamp or just the number of the migration ? Also if I have set timestamps to migrations, do I have to generate somehow a timestamp in order to apply in to the name of the file etc? do something like this for instance PHP Code: echo date('YmdHis'); |
Messages In This Thread |
Add dummy content when running migrations - by Lykos22 - 10-05-2015, 02:11 AM
RE: Add dummy content when running migrations - by orionstar - 10-05-2015, 07:09 AM
RE: Add dummy content when running migrations - by Lykos22 - 10-05-2015, 07:30 AM
RE: Add dummy content when running migrations - by orionstar - 10-05-2015, 07:59 AM
|