Add Files page upload flow with manual folders and duplicate handling.
Deploy Ladill Transfer / deploy (push) Successful in 44s
Deploy Ladill Transfer / deploy (push) Successful in 44s
Users can create folders, upload files or folders, and choose replace or keep both on name conflicts instead of auto-grouping by transfer. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('transfers', function (Blueprint $table) {
|
||||
$table->boolean('is_folder')->default(false)->after('status');
|
||||
$table->boolean('is_root_storage')->default(false)->after('is_folder');
|
||||
$table->index(['user_id', 'is_folder']);
|
||||
$table->index(['user_id', 'is_root_storage']);
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('transfers', function (Blueprint $table) {
|
||||
$table->dropIndex(['user_id', 'is_folder']);
|
||||
$table->dropIndex(['user_id', 'is_root_storage']);
|
||||
$table->dropColumn(['is_folder', 'is_root_storage']);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user