refactor(models): remove 'is_readonly' attribute from multiple database models for consistency
This commit is contained in:
parent
fc7770100b
commit
f64622c764
9 changed files with 1 additions and 11 deletions
|
|
@ -28,7 +28,6 @@ protected static function booted()
|
||||||
'host_path' => null,
|
'host_path' => null,
|
||||||
'resource_id' => $database->id,
|
'resource_id' => $database->id,
|
||||||
'resource_type' => $database->getMorphClass(),
|
'resource_type' => $database->getMorphClass(),
|
||||||
'is_readonly' => true,
|
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
static::forceDeleting(function ($database) {
|
static::forceDeleting(function ($database) {
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,6 @@ protected static function booted()
|
||||||
'host_path' => null,
|
'host_path' => null,
|
||||||
'resource_id' => $database->id,
|
'resource_id' => $database->id,
|
||||||
'resource_type' => $database->getMorphClass(),
|
'resource_type' => $database->getMorphClass(),
|
||||||
'is_readonly' => true,
|
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
static::forceDeleting(function ($database) {
|
static::forceDeleting(function ($database) {
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,6 @@ protected static function booted()
|
||||||
'host_path' => null,
|
'host_path' => null,
|
||||||
'resource_id' => $database->id,
|
'resource_id' => $database->id,
|
||||||
'resource_type' => $database->getMorphClass(),
|
'resource_type' => $database->getMorphClass(),
|
||||||
'is_readonly' => true,
|
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
static::forceDeleting(function ($database) {
|
static::forceDeleting(function ($database) {
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,6 @@ protected static function booted()
|
||||||
'host_path' => null,
|
'host_path' => null,
|
||||||
'resource_id' => $database->id,
|
'resource_id' => $database->id,
|
||||||
'resource_type' => $database->getMorphClass(),
|
'resource_type' => $database->getMorphClass(),
|
||||||
'is_readonly' => true,
|
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
static::forceDeleting(function ($database) {
|
static::forceDeleting(function ($database) {
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,6 @@ protected static function booted()
|
||||||
'host_path' => null,
|
'host_path' => null,
|
||||||
'resource_id' => $database->id,
|
'resource_id' => $database->id,
|
||||||
'resource_type' => $database->getMorphClass(),
|
'resource_type' => $database->getMorphClass(),
|
||||||
'is_readonly' => true,
|
|
||||||
]);
|
]);
|
||||||
LocalPersistentVolume::create([
|
LocalPersistentVolume::create([
|
||||||
'name' => 'mongodb-db-'.$database->uuid,
|
'name' => 'mongodb-db-'.$database->uuid,
|
||||||
|
|
@ -32,7 +31,6 @@ protected static function booted()
|
||||||
'host_path' => null,
|
'host_path' => null,
|
||||||
'resource_id' => $database->id,
|
'resource_id' => $database->id,
|
||||||
'resource_type' => $database->getMorphClass(),
|
'resource_type' => $database->getMorphClass(),
|
||||||
'is_readonly' => true,
|
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
static::forceDeleting(function ($database) {
|
static::forceDeleting(function ($database) {
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,6 @@ protected static function booted()
|
||||||
'host_path' => null,
|
'host_path' => null,
|
||||||
'resource_id' => $database->id,
|
'resource_id' => $database->id,
|
||||||
'resource_type' => $database->getMorphClass(),
|
'resource_type' => $database->getMorphClass(),
|
||||||
'is_readonly' => true,
|
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
static::forceDeleting(function ($database) {
|
static::forceDeleting(function ($database) {
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,6 @@ protected static function booted()
|
||||||
'host_path' => null,
|
'host_path' => null,
|
||||||
'resource_id' => $database->id,
|
'resource_id' => $database->id,
|
||||||
'resource_type' => $database->getMorphClass(),
|
'resource_type' => $database->getMorphClass(),
|
||||||
'is_readonly' => true,
|
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
static::forceDeleting(function ($database) {
|
static::forceDeleting(function ($database) {
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,6 @@ protected static function booted()
|
||||||
'host_path' => null,
|
'host_path' => null,
|
||||||
'resource_id' => $database->id,
|
'resource_id' => $database->id,
|
||||||
'resource_type' => $database->getMorphClass(),
|
'resource_type' => $database->getMorphClass(),
|
||||||
'is_readonly' => true,
|
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
static::forceDeleting(function ($database) {
|
static::forceDeleting(function ($database) {
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,7 @@
|
||||||
:resource="$resource" :isFirst="$loop->first" isService='true' />
|
:resource="$resource" :isFirst="$loop->first" isService='true' />
|
||||||
@else
|
@else
|
||||||
<livewire:project.shared.storages.show wire:key="storage-{{ $storage->id }}" :storage="$storage"
|
<livewire:project.shared.storages.show wire:key="storage-{{ $storage->id }}" :storage="$storage"
|
||||||
:resource="$resource" isReadOnly="{{ data_get($storage, 'is_readonly') }}"
|
:resource="$resource" startedAt="{{ data_get($resource, 'started_at') }}" />
|
||||||
startedAt="{{ data_get($resource, 'started_at') }}" />
|
|
||||||
@endif
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue