PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Jun 24, 2019 5:35 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue Oct 06, 2015 6:36 am 
Offline
Forum Contributor
User avatar

Joined: Wed May 14, 2014 12:18 pm
Posts: 331
Just had a question about migration , was reading the link here:

http://laravel.com/docs/5.1/migrations,

now suppose i create a table just for testing something random in my application , say i do something like:

Syntax: [ Download ] [ Hide ]
php artisan migrate:make create_testing_fileupload
 


now once i am done testing obviously i don't want this file to be in my project do i drop the table from the database, but the file is still there, so do i just delete the file ? because obviously when i push the project to git or some version control system, i don't want the guy haveing a migration file that was just meant for testing and then for him/her to have an additional unwanted table in their database.

so basically how do i deal with a migration file that was just meant for testing ?

Thank you.
Gautam.


Top
 Profile  
 
PostPosted: Tue Oct 06, 2015 6:47 am 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 6425
Location: Montreal, Canada
If it was a temporary table just for use in development, I'd either create it by hand rather than writing a migration for it at all, or just delete the migration before deploying.

_________________
Supported PHP versions No longer supported versions


Top
 Profile  
 
PostPosted: Tue Oct 06, 2015 7:33 am 
Offline
Forum Contributor
User avatar

Joined: Wed May 14, 2014 12:18 pm
Posts: 331
Well , thats all i wanted to know :D ... thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group