feat: implement intern blog management system with approval workflows and administrative feedback
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?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('blogs', function (Blueprint $table) {
|
||||
$table->foreignId('career_application_id')->nullable()->after('author_id')->constrained('career_applications')->onDelete('cascade');
|
||||
$table->string('intern_category')->nullable()->after('career_application_id');
|
||||
$table->text('admin_feedback')->nullable()->after('intern_category');
|
||||
$table->foreignId('author_id')->nullable()->change();
|
||||
$table->string('status')->default('draft')->change();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('blogs', function (Blueprint $table) {
|
||||
$table->dropForeign(['career_application_id']);
|
||||
$table->dropColumn(['career_application_id', 'intern_category', 'admin_feedback']);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user