Merge pull request #842 from jonnybarnes/774-fix-unit-test

Increase article title and URL column length in migration.
This commit is contained in:
Jonny Barnes 2023-05-19 14:34:53 +01:00 committed by GitHub
commit e9845d27c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,29 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('articles', function (Blueprint $table) {
$table->string('titleurl', 255)->change();
$table->string('url', 255)->change();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('articles', function (Blueprint $table) {
// Converting back to shorter lengths might cause issues
});
}
};