From efe4b98e6f3d5d63bc2da8110f474d6b7ec122df Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 6 Jul 2018 23:49:59 +0200 Subject: Added public key database migration --- .../2018_07_06_213554_create_public_key_table.php | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 database/migrations/2018_07_06_213554_create_public_key_table.php (limited to 'database') diff --git a/database/migrations/2018_07_06_213554_create_public_key_table.php b/database/migrations/2018_07_06_213554_create_public_key_table.php new file mode 100644 index 0000000..5a1dda4 --- /dev/null +++ b/database/migrations/2018_07_06_213554_create_public_key_table.php @@ -0,0 +1,35 @@ +increments('id'); + $table->integer('user_id')->unsigned()->unique(); + $table->string('key', 4096); + $table->timestamps(); + + $table->foreign('user_id')->references('id')->on('users'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('public_key'); + } +} -- cgit v1.2.3