refactor: Update article schema for better flexibility.

- Update database table `articles`
- Set `url` column as nullable
This commit is contained in:
Jonny Barnes 2023-05-27 16:47:44 +01:00
parent 8397a81218
commit 9c62a5daff
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8

View file

@ -13,7 +13,7 @@ return new class extends Migration
{
Schema::table('articles', function (Blueprint $table) {
$table->string('titleurl', 255)->change();
$table->string('url', 255)->change();
$table->string('url', 255)->nullable()->change();
});
}