Merge branch 'develop' into enhancement/wings-improved-server-loading

This commit is contained in:
Matthew Penner
2020-04-10 16:55:22 -06:00
committed by GitHub

View File

@@ -23,8 +23,8 @@ class StoreNodeTokensAsEncryptedValue extends Migration
}); });
Schema::table('nodes', function (Blueprint $table) { Schema::table('nodes', function (Blueprint $table) {
$table->char('uuid', 36)->after('id')->unique(); $table->char('uuid', 36)->after('id');
$table->char('daemon_token_id', 16)->after('upload_size')->unique(); $table->char('daemon_token_id', 16)->after('upload_size');
$table->renameColumn('daemonSecret', 'daemon_token'); $table->renameColumn('daemonSecret', 'daemon_token');
}); });
@@ -45,6 +45,11 @@ class StoreNodeTokensAsEncryptedValue extends Migration
]); ]);
} }
}); });
Schema::table('nodes', function (Blueprint $table) {
$table->unique(['uuid']);
$table->unique(['daemon_token_id']);
});
} }
/** /**