Last active
September 3, 2023 07:21
-
-
Save ibrajix/50391b1e17dc29a06bc74ec4c74a6eca to your computer and use it in GitHub Desktop.
Add new column to migration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function up() | |
{ | |
Schema::create('todo', function (Blueprint $table) { | |
$table->id(); | |
$table->timestamps(); | |
$table->string('name'); //I added the name column | |
$table->text('description'); //I added the description column | |
}); | |
} | |
public function down() | |
{ | |
Schema::dropIfExists('todo'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment