added url and call to action to entries migraiton and model
updated unit tests
This commit is contained in:
parent
0d688a0f82
commit
6731b4c487
5 changed files with 53 additions and 14 deletions
29
database/migrations/2026_01_17_162204_add-url-to-entries.php
Normal file
29
database/migrations/2026_01_17_162204_add-url-to-entries.php
Normal 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('entries', function (Blueprint $table) {
|
||||
$table->string('call_to_action_text')->nullable()->after('title');
|
||||
$table->string('call_to_action_link')->nullable()->after('url');
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('entries', function (Blueprint $table) {
|
||||
$table->dropColumn('call_to_action_text');
|
||||
$table->dropColumn('call_to_action_link');
|
||||
});
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue