From 171cfa7aab8da7a148c2373ed968aeb1da0a85dd Mon Sep 17 00:00:00 2001 From: James Collins Date: Sat, 6 May 2023 18:16:53 +1000 Subject: [PATCH] added table --- ...3_05_06_080418_create_shortlinks_table.php | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 database/migrations/2023_05_06_080418_create_shortlinks_table.php diff --git a/database/migrations/2023_05_06_080418_create_shortlinks_table.php b/database/migrations/2023_05_06_080418_create_shortlinks_table.php new file mode 100644 index 0000000..82612dc --- /dev/null +++ b/database/migrations/2023_05_06_080418_create_shortlinks_table.php @@ -0,0 +1,33 @@ +id(); + $table->string('code', 4)->unique(); + $table->string('url'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('shortlinks'); + } +};