chore: 🗃️ add deleted_at column on gitlab tables

This commit is contained in:
Alexis Gousseau 2026-06-05 12:01:51 +02:00
parent a0c0f7965a
commit 08637c882a
No known key found for this signature in database
GPG key ID: 7F3C786EE12DBB72
6 changed files with 6 additions and 0 deletions

View file

@ -21,6 +21,7 @@ return new class extends Migration
$table->unsignedBigInteger('gitlab_id')->unique()->comment('Gitlab id of the gitlab project.');
$table->timestamp('created_at')->nullable()->comment('Date the gitlab project was created.');
$table->timestamp('updated_at')->nullable()->comment('Date the gitlab project was updated.');
$table->timestamp('deleted_at')->nullable()->comment('Date the gitlab project was deleted.');
});
}

View file

@ -17,6 +17,7 @@ return new class extends Migration
$table->foreignId('user_id')->unique()->comment('Id of the user.')->constrained()->cascadeOnDelete();
$table->timestamp('created_at')->nullable()->comment('Date the gitlab user was created.');
$table->timestamp('updated_at')->nullable()->comment('Date the gitlab user was updated.');
$table->timestamp('deleted_at')->nullable()->comment('Date the gitlab user was deleted.');
});
}

View file

@ -19,6 +19,7 @@ return new class extends Migration
$table->unsignedBigInteger('gitlab_id')->unique()->comment('Gitlab id of the gitlab label.');
$table->timestamp('created_at')->nullable()->comment('Date the gitlab label was created.');
$table->timestamp('updated_at')->nullable()->comment('Date the gitlab label was updated.');
$table->timestamp('deleted_at')->nullable()->comment('Date the gitlab label was deleted.');
});
}

View file

@ -30,6 +30,7 @@ return new class extends Migration
$table->date('g_due_date')->nullable()->comment('Due at date of the gitlab issue.');
$table->timestamp('created_at')->nullable()->comment('Date the gitlab issue was created.');
$table->timestamp('updated_at')->nullable()->comment('Date the gitlab issue was updated.');
$table->timestamp('deleted_at')->nullable()->comment('Date the gitlab issue was deleted.');
});
}

View file

@ -27,6 +27,7 @@ return new class extends Migration
$table->date('g_due_date')->nullable()->comment('Due at date of the gitlab milestone.');
$table->timestamp('created_at')->nullable()->comment('Date the gitlab milestone was created.');
$table->timestamp('updated_at')->nullable()->comment('Date the gitlab milestone was updated.');
$table->timestamp('deleted_at')->nullable()->comment('Date the gitlab milestone was deleted.');
});
}

View file

@ -21,6 +21,7 @@ return new class extends Migration
->constrained('gitlab_labels')->onUpdate('no action')->onDelete('cascade');
$table->timestamp('created_at')->nullable()->comment('Date the relation was created.');
$table->timestamp('updated_at')->nullable()->comment('Date the relation was updated.');
$table->timestamp('deleted_at')->nullable()->comment('Date the relation was deleted.');
});
}