-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Little change in database #215
base: main
Are you sure you want to change the base?
Conversation
$table->timestamp('email_verified_at')->nullable(); | ||
$table->boolean('newsletter')->default(0); | ||
$table->string('password'); | ||
$table->string('password', 150); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pas utile 🥲
@@ -14,13 +14,13 @@ public function up(): void | |||
Schema::create('users', static function (Blueprint $table): void { | |||
$table->id(); | |||
$table->enum('gender', ['male', 'female', 'other']); | |||
$table->string('last_name', 45); | |||
$table->string('last_name', 45)->index(); | |||
$table->string('first_name', 45); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rajouter un index
$table->string('contact_name')->nullable(); | ||
$table->string('contact_phone')->nullable(); | ||
$table->integer('nb_children')->nullable(); | ||
$table->foreignId('parent_id')->nullable()->constrained(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A tester
$table->string('job', 50)->nullable(); | ||
$table->string('contact_name')->nullable(); | ||
$table->string('contact_phone')->nullable(); | ||
$table->integer('nb_children')->nullable(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Peut être en unsigned et un tiny int ou integer plus petit
No description provided.