Advertisement
Guest User

Untitled

a guest
Jul 29th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. <?php
  2.  
  3. use Illuminate\Database\Migrations\Migration;
  4. use Illuminate\Database\Schema\Blueprint;
  5.  
  6. class CreateFileentriesTable extends Migration {
  7.  
  8. public function up()
  9. {
  10. Schema::create('fileentries', function(Blueprint $table) {
  11. $table->increments('id');
  12. $table->string('original_filename')->nullable();
  13. $table->string('filename');
  14. $table->string('path')->nullable();
  15. $table->timestamps();
  16. });
  17. }
  18.  
  19. public function down()
  20. {
  21. Schema::drop('fileentries');
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement