summaryrefslogtreecommitdiff
path: root/database
diff options
context:
space:
mode:
authorthomasg <grothedev@gmail.com>2025-05-14 19:46:13 -0400
committerthomasg <grothedev@gmail.com>2025-05-14 19:46:13 -0400
commit1ac836f88a60cbae129e3a6427cbe5310f239a12 (patch)
tree321f6ba7dfd6405bbc7d33d3da9ffc06a2e927b7 /database
parent910995f907ab23b5d3c7454639c59a494c4721b2 (diff)
pushing to move to server
Diffstat (limited to 'database')
-rw-r--r--database/migrations/2024_12_21_021128_files.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/database/migrations/2024_12_21_021128_files.php b/database/migrations/2024_12_21_021128_files.php
index f76ab53..0c485f0 100644
--- a/database/migrations/2024_12_21_021128_files.php
+++ b/database/migrations/2024_12_21_021128_files.php
@@ -18,7 +18,9 @@ return new class extends Migration
$table->string('path')->unique();
$table->string('source');
$table->string('description');
- $table->string('md5')->required();
+ $table->integer('user_id')->unsigned()->index();
+ $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
+ $table->string('md5')->required();
});
}