mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-19 19:54:45 +02:00
These have to be nullable originally (#1222)
This commit is contained in:
parent
92fbd75772
commit
51fda2eaf4
@ -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
|
||||
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -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');
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
@ -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();
|
||||
});
|
||||
|
@ -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);
|
||||
});
|
||||
|
||||
|
@ -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 () {
|
||||
|
@ -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');
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -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');
|
||||
|
@ -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');
|
||||
});
|
||||
|
||||
|
@ -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');
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -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');
|
||||
});
|
||||
|
||||
|
@ -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');
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -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');
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -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' => '[]']);
|
||||
|
@ -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' => '[]']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user