Spaces:
Sleeping
Sleeping
Download database/migrations/0001_01_01_000001_create_cache_table.php from wepee/CAPS04-FE-REFACTOR: direct link, hf CLI and curl.
- Browser
- Download file 873 Bytes
-
https://huggingface.co/spaces/wepee/CAPS04-FE-REFACTOR/resolve/refs%2Fpr%2F1/database/migrations/0001_01_01_000001_create_cache_table.php
- Command line
-
hf download hf://spaces/wepee/CAPS04-FE-REFACTOR@refs/pr/1/database/migrations/0001_01_01_000001_create_cache_table.php
-
curl -L -o 0001_01_01_000001_create_cache_table.php https://huggingface.co/spaces/wepee/CAPS04-FE-REFACTOR/resolve/refs%2Fpr%2F1/database/migrations/0001_01_01_000001_create_cache_table.php
873 Bytes
| 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::create('cache', function (Blueprint $table) { | |
| $table->string('key')->primary(); | |
| $table->mediumText('value'); | |
| $table->bigInteger('expiration')->index(); | |
| }); | |
| Schema::create('cache_locks', function (Blueprint $table) { | |
| $table->string('key')->primary(); | |
| $table->string('owner'); | |
| $table->bigInteger('expiration')->index(); | |
| }); | |
| } | |
| /** | |
| * Reverse the migrations. | |
| */ | |
| public function down(): void | |
| { | |
| Schema::dropIfExists('cache'); | |
| Schema::dropIfExists('cache_locks'); | |
| } | |
| }; | |