Aucune description

2015_05_18_095002_add_first_login_to_users_table.php 570B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. use Illuminate\Database\Migrations\Migration;
  3. use Illuminate\Database\Schema\Blueprint;
  4. class AddFirstLoginToUsersTable extends Migration {
  5. /**
  6. * Run the migrations.
  7. *
  8. * @return void
  9. */
  10. public function up()
  11. {
  12. Schema::table('users', function(Blueprint $table)
  13. {
  14. $table->boolean('password_updated')->after('program_id')->default(false);
  15. });
  16. }
  17. /**
  18. * Reverse the migrations.
  19. *
  20. * @return void
  21. */
  22. public function down()
  23. {
  24. Schema::table('users', function(Blueprint $table)
  25. {
  26. $table->dropColumn('password_updated');
  27. });
  28. }
  29. }