2020_08_21_145711_create_node_certificate_table.php 808 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. use Illuminate\Database\Migrations\Migration;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Support\Facades\Schema;
  5. class CreateNodeCertificateTable extends Migration {
  6. /**
  7. * Run the migrations.
  8. *
  9. * @return void
  10. */
  11. public function up() {
  12. Schema::create('node_certificate', function(Blueprint $table) {
  13. $table->increments('id');
  14. $table->string('domain')->comment('域名');
  15. $table->text('key')->nullable()->comment('域名证书KEY');
  16. $table->text('pem')->nullable()->comment('域名证书PEM');
  17. $table->dateTime('created_at')->comment('创建时间');
  18. $table->dateTime('updated_at')->comment('最后更新时间');
  19. });
  20. }
  21. /**
  22. * Reverse the migrations.
  23. *
  24. * @return void
  25. */
  26. public function down() {
  27. Schema::dropIfExists('node_certificate');
  28. }
  29. }