These have to be nullable originally (#1222)

This commit is contained in:
Lance Pioch 2025-04-07 21:08:03 -04:00 committed by GitHub
parent 92fbd75772
commit 51fda2eaf4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
16 changed files with 18 additions and 18 deletions

View File

@ -11,7 +11,7 @@ return new class extends Migration
public function up(): void
{
Schema::table('servers', function (Blueprint $table) {
$table->mediumInteger('allocation')->unsigned()->after('oom_disabled');
$table->mediumInteger('allocation')->nullable()->unsigned()->after('oom_disabled');
});
// Parse All Servers

View File

@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::table('failed_jobs', function (Blueprint $table) {
$table->text('exception');
$table->text('exception')->nullable();
});
}

View File

@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::table('services', function (Blueprint $table) {
$table->string('author', 36)->after('id');
$table->string('author', 36)->nullable()->after('id');
});
}

View File

@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::table('servers', function (Blueprint $table) {
$table->string('image')->after('daemonSecret');
$table->string('image')->nullable()->after('daemonSecret');
});
// Populate the column

View File

@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::table('api_keys', function (Blueprint $table) {
$table->unsignedInteger('user')->after('id');
$table->unsignedInteger('user')->nullable()->after('id');
$table->text('memo')->after('allowed_ips')->nullable();
$table->timestamp('expires_at')->after('memo')->nullable();
});

View File

@ -15,7 +15,7 @@ return new class extends Migration
Schema::table('users', function (Blueprint $table) {
$table->string('name_first')->after('email')->nullable();
$table->string('name_last')->after('name_first')->nullable();
$table->string('username')->after('uuid');
$table->string('username')->after('uuid')->nullable();
$table->boolean('gravatar')->after('totp_secret')->default(true);
});

View File

@ -44,7 +44,7 @@ EOF;
public function up(): void
{
Schema::table('services', function (Blueprint $table) {
$table->text('index_file')->after('startup');
$table->text('index_file')->nullable()->after('startup');
});
DB::transaction(function () {

View File

@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::table('servers', function (Blueprint $table) {
$table->text('description')->after('name');
$table->text('description')->nullable()->after('name');
});
}

View File

@ -18,7 +18,7 @@ return new class extends Migration
$table->dropUnique(['file']);
$table->string('author')->change();
$table->string('uuid', 36)->after('id');
$table->string('uuid', 36)->nullable()->after('id');
$table->dropColumn('folder');
$table->dropColumn('startup');
$table->dropColumn('index_file');

View File

@ -14,8 +14,8 @@ return new class extends Migration
public function up(): void
{
Schema::table('service_options', function (Blueprint $table) {
$table->string('uuid', 36)->after('id');
$table->string('author')->after('service_id');
$table->string('uuid', 36)->nullable()->after('id');
$table->string('author')->nullable()->after('service_id');
$table->dropColumn('tag');
});

View File

@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::table('nodes', function (Blueprint $table) {
$table->text('description')->after('name');
$table->text('description')->nullable()->after('name');
});
}

View File

@ -21,8 +21,8 @@ return new class extends Migration
});
Schema::table('nodes', function (Blueprint $table) {
$table->string('uuid', 36)->after('id');
$table->string('daemon_token_id', 16)->after('upload_size');
$table->string('uuid', 36)->nullable()->after('id');
$table->string('daemon_token_id', 16)->nullable()->after('upload_size');
$table->renameColumn('daemonSecret', 'daemon_token');
});

View File

@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::table('eggs', function (Blueprint $table) {
$table->text('file_denylist')->after('docker_images');
$table->text('file_denylist')->nullable()->after('docker_images');
});
}

View File

@ -12,7 +12,7 @@ return new class extends Migration
public function up(): void
{
Schema::table('schedules', function (Blueprint $table) {
$table->string('cron_month')->after('cron_day_of_week');
$table->string('cron_month')->nullable()->after('cron_day_of_week');
});
}

View File

@ -11,7 +11,7 @@ return new class extends Migration
public function up(): void
{
Schema::table('eggs', function (Blueprint $table) {
$table->text('tags');
$table->text('tags')->nullable();
});
DB::table('eggs')->update(['tags' => '[]']);

View File

@ -10,7 +10,7 @@ return new class extends Migration
public function up(): void
{
Schema::table('nodes', function (Blueprint $table) {
$table->text('tags');
$table->text('tags')->nullable();
});
DB::table('nodes')->update(['tags' => '[]']);