From 210d83db4541c3fc66f91253988a5ef9f7385977 Mon Sep 17 00:00:00 2001 From: Frankie B Date: Wed, 31 Jan 2024 21:17:56 +0000 Subject: Add database migrations --- ...4_01_31_204742_create_bookmark__sites_table.php | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 database/migrations/2024_01_31_204742_create_bookmark__sites_table.php (limited to 'database/migrations/2024_01_31_204742_create_bookmark__sites_table.php') diff --git a/database/migrations/2024_01_31_204742_create_bookmark__sites_table.php b/database/migrations/2024_01_31_204742_create_bookmark__sites_table.php new file mode 100644 index 0000000..775c6bb --- /dev/null +++ b/database/migrations/2024_01_31_204742_create_bookmark__sites_table.php @@ -0,0 +1,33 @@ +increments('id'); + $table->string('name', 50); + $table->string('description', 150); + $table->string('url', 100); + $table->float('priority'); + $table->integer('category_id')->unsigned(); + $table->foreign('category_id')->references('id')->on('bookmark__categories'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('bookmark__sites'); + } +}; -- cgit v1.2.3-54-g00ecf