aboutsummaryrefslogtreecommitdiff
path: root/database/migrations
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-10-18 17:18:00 +0200
committerMateja <mail@matejamaric.com>2020-10-18 17:18:00 +0200
commit4cd3e2eacb4e81950dddd3e64c6c81b5f1e3f24d (patch)
tree3043071a32046c27a349f15317812966ce289d58 /database/migrations
parent21f999346f5bdf1d95da13f30261e94520d0f27c (diff)
downloadyota-laravel-4cd3e2eacb4e81950dddd3e64c6c81b5f1e3f24d.tar.gz
yota-laravel-4cd3e2eacb4e81950dddd3e64c6c81b5f1e3f24d.zip
db work...
Diffstat (limited to 'database/migrations')
-rw-r--r--database/migrations/2020_10_18_142620_create_posts_table.php33
-rw-r--r--database/migrations/2020_10_18_142649_create_reservations_table.php32
2 files changed, 65 insertions, 0 deletions
diff --git a/database/migrations/2020_10_18_142620_create_posts_table.php b/database/migrations/2020_10_18_142620_create_posts_table.php
new file mode 100644
index 0000000..923295d
--- /dev/null
+++ b/database/migrations/2020_10_18_142620_create_posts_table.php
@@ -0,0 +1,33 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class CreatePostsTable extends Migration
+{
+ /**
+ * Run the migrations.
+ *
+ * @return void
+ */
+ public function up()
+ {
+ Schema::create('posts', function (Blueprint $table) {
+ $table->id();
+ $table->string('author', 255)->nullable();
+ $table->longText('text');
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ Schema::dropIfExists('posts');
+ }
+}
diff --git a/database/migrations/2020_10_18_142649_create_reservations_table.php b/database/migrations/2020_10_18_142649_create_reservations_table.php
new file mode 100644
index 0000000..fc8e39a
--- /dev/null
+++ b/database/migrations/2020_10_18_142649_create_reservations_table.php
@@ -0,0 +1,32 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class CreateReservationsTable extends Migration
+{
+ /**
+ * Run the migrations.
+ *
+ * @return void
+ */
+ public function up()
+ {
+ Schema::create('reservations', function (Blueprint $table) {
+ $table->id();
+ $table->boolean('approved')->default(false);
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ Schema::dropIfExists('reservations');
+ }
+}