2019_06_05_105903_change_column_album_manufacturer.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class ChangeColumnAlbumManufacturer extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::table('album_manufacturer', function (Blueprint $table) {
  15. //
  16. $table->string('avatar', 255)->default('')->nullable()->change();
  17. $table->string('service_app_id', 255)->default('')->nullable()->change();
  18. $table->string('service_app_secret', 255)->default('')->nullable()->change();
  19. $table->string('redirectapp', 255)->default('')->nullable()->change();
  20. $table->string('G_app_id', 255)->default('')->nullable()->change();
  21. $table->string('G_app_secret', 255)->default('')->nullable()->change();
  22. $table->dropColumn(['app_id','app_secret']);
  23. });
  24. }
  25. /**
  26. * Reverse the migrations.
  27. *
  28. * @return void
  29. */
  30. public function down()
  31. {
  32. Schema::table('album_manufacturer', function (Blueprint $table) {
  33. //
  34. });
  35. }
  36. }