diff --git a/.github/workflows/phpunits.yaml b/.github/workflows/phpunits.yaml index 1a8f57e73..7de2ac3c5 100644 --- a/.github/workflows/phpunits.yaml +++ b/.github/workflows/phpunits.yaml @@ -20,7 +20,7 @@ jobs: matrix: php-versions: [8.1, 8.2, 8.3] databases: [testing, pgsql, mysql, mariadb] - caches: [array, redis, memcached] + caches: [array, redis, memcached, database] locks: [redis, memcached] services: diff --git a/tests/migrations/2023_12_13_190445_create_cache_table.php b/tests/migrations/2023_12_13_190445_create_cache_table.php new file mode 100644 index 000000000..535685990 --- /dev/null +++ b/tests/migrations/2023_12_13_190445_create_cache_table.php @@ -0,0 +1,38 @@ +string('key') + ->primary(); + $table->mediumText('value'); + $table->integer('expiration'); + }); + + Schema::create('cache_locks', static function (Blueprint $table) { + $table->string('key') + ->primary(); + $table->string('owner'); + $table->integer('expiration'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('cache'); + Schema::dropIfExists('cache_locks'); + } +};