From ba37a54a20c7f8be5610c09a3d8176ada7dde17a Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 7 May 2021 21:32:59 -0600 Subject: [PATCH] Add ConfigCache model and migration --- app/Models/ConfigCache.php | 14 ++++++++ ...4_28_060450_create_config_caches_table.php | 34 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 app/Models/ConfigCache.php create mode 100644 database/migrations/2021_04_28_060450_create_config_caches_table.php diff --git a/app/Models/ConfigCache.php b/app/Models/ConfigCache.php new file mode 100644 index 000000000..4698b1c6b --- /dev/null +++ b/app/Models/ConfigCache.php @@ -0,0 +1,14 @@ +id(); + $table->string('k')->unique()->index(); + $table->text('v')->nullable(); + $table->json('metadata')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('config_cache'); + } +}