Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Little change in database #215

wants to merge 4 commits into from

Conversation

Romaindk
Copy link
Collaborator

No description provided.

@cbouvat cbouvat self-requested a review September 12, 2024 09:55
@cbouvat cbouvat added the enhancement New feature or request label Sep 12, 2024
$table->timestamp('email_verified_at')->nullable();
$table->boolean('newsletter')->default(0);
$table->string('password');
$table->string('password', 150);
Copy link
Owner

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);
Copy link
Owner

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();
Copy link
Owner

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();
Copy link
Owner

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

@cbouvat cbouvat changed the title migrations Little change in database Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants