Browse Source

Correction TP8 compatible avec Webetu

akrah 6 years ago
parent
commit
0987697c3c

+ 0 - 36
correction/TP8/database/migrations/2014_10_12_000000_create_users_table.php

@@ -1,36 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-class CreateUsersTable extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('users', function (Blueprint $table) {
-            $table->bigIncrements('id');
-            $table->string('name');
-            $table->string('email')->unique();
-            $table->timestamp('email_verified_at')->nullable();
-            $table->string('password');
-            $table->rememberToken();
-            $table->timestamps();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('users');
-    }
-}

+ 2 - 2
correction/TP8/database/migrations/2019_11_11_161958_create_user_eloquents_table.php

@@ -14,8 +14,8 @@ class CreateUserEloquentsTable extends Migration
     public function up()
     {
         Schema::create('UserEloquent', function (Blueprint $table) {
-            $table->string('user',255);
-            $table->string('password',255);
+            $table->string('user',128);
+            $table->string('password',128);
             $table->primary('user');
         });
     }