server: add configuration for install notifications (#4331)

* server: track `installed_at`, only send install notification on first install
* server: add configuration for install notifications
This commit is contained in:
Matthew Penner 2022-09-25 13:16:58 -06:00 committed by GitHub
parent 23124c9b08
commit 8e1a21563e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 59 additions and 6 deletions

View file

@ -0,0 +1,32 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddInstalledAtColumnToServersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('servers', function (Blueprint $table) {
$table->timestamp('installed_at')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('servers', function (Blueprint $table) {
$table->dropColumn('installed_at');
});
}
}