소스 검색

no message

kuaifan 5 년 전
부모
커밋
6dfb3021c7
1개의 변경된 파일35개의 추가작업 그리고 0개의 파일을 삭제
  1. 35 0
      database/migrations/2020_06_08_175126_create_pre_ws_table.php

+ 35 - 0
database/migrations/2020_06_08_175126_create_pre_ws_table.php

@@ -0,0 +1,35 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class CreatePreWsTable extends Migration
+{
+	/**
+	 * Run the migrations.
+	 *
+	 * @return void
+	 */
+	public function up()
+	{
+		Schema::create('ws', function(Blueprint $table)
+		{
+			$table->string('key', 50)->default('')->unique('IDEX_key');
+			$table->string('fd', 50)->nullable()->default('');
+			$table->string('username', 100)->nullable()->default('')->index('IDEX_username');
+			$table->string('channel', 50)->nullable()->default('');
+			$table->bigInteger('update')->nullable()->default(0);
+		});
+	}
+
+	/**
+	 * Reverse the migrations.
+	 *
+	 * @return void
+	 */
+	public function down()
+	{
+		Schema::drop('ws');
+	}
+}