aboutsummaryrefslogtreecommitdiffhomepage
path: root/database/migrations
diff options
context:
space:
mode:
authorMarvin Borner2018-07-08 17:14:26 +0200
committerMarvin Borner2018-07-08 17:14:26 +0200
commit2b7e31ffa79f508453bc5c759a7511e476cbbe96 (patch)
tree209ea7974323b0b9270090f4f993ffb1a77085bd /database/migrations
parent8ba38dcf7fbd96a6f13639057e045eba114e2f39 (diff)
Added basic blockchain-like hashing for verified data
Diffstat (limited to 'database/migrations')
-rw-r--r--database/migrations/2014_10_12_000000_create_users_table.php1
-rw-r--r--database/migrations/2018_07_07_104937_create_public_keys_table.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/database/migrations/2014_10_12_000000_create_users_table.php b/database/migrations/2014_10_12_000000_create_users_table.php
index 6751167..55e1804 100644
--- a/database/migrations/2014_10_12_000000_create_users_table.php
+++ b/database/migrations/2014_10_12_000000_create_users_table.php
@@ -18,6 +18,7 @@ class CreateUsersTable extends Migration
$table->string('email')->unique();
$table->string('password');
$table->string('avatar')->default('0.png');
+ $table->string('hash', 60)->unique();
$table->rememberToken();
$table->timestamps();
});
diff --git a/database/migrations/2018_07_07_104937_create_public_keys_table.php b/database/migrations/2018_07_07_104937_create_public_keys_table.php
index 5a1dda4..c9d548e 100644
--- a/database/migrations/2018_07_07_104937_create_public_keys_table.php
+++ b/database/migrations/2018_07_07_104937_create_public_keys_table.php
@@ -4,7 +4,7 @@ use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
-class CreatePublicKeyTable extends Migration
+class CreatePublicKeysTable extends Migration
{
/**
* Run the migrations.