refactor(models): remove 'is_readonly' attribute from multiple database models for consistency
This commit is contained in:
@@ -28,7 +28,6 @@ class StandaloneClickhouse extends BaseModel
|
||||
'host_path' => null,
|
||||
'resource_id' => $database->id,
|
||||
'resource_type' => $database->getMorphClass(),
|
||||
'is_readonly' => true,
|
||||
]);
|
||||
});
|
||||
static::forceDeleting(function ($database) {
|
||||
|
@@ -28,7 +28,6 @@ class StandaloneDragonfly extends BaseModel
|
||||
'host_path' => null,
|
||||
'resource_id' => $database->id,
|
||||
'resource_type' => $database->getMorphClass(),
|
||||
'is_readonly' => true,
|
||||
]);
|
||||
});
|
||||
static::forceDeleting(function ($database) {
|
||||
|
@@ -28,7 +28,6 @@ class StandaloneKeydb extends BaseModel
|
||||
'host_path' => null,
|
||||
'resource_id' => $database->id,
|
||||
'resource_type' => $database->getMorphClass(),
|
||||
'is_readonly' => true,
|
||||
]);
|
||||
});
|
||||
static::forceDeleting(function ($database) {
|
||||
|
@@ -29,7 +29,6 @@ class StandaloneMariadb extends BaseModel
|
||||
'host_path' => null,
|
||||
'resource_id' => $database->id,
|
||||
'resource_type' => $database->getMorphClass(),
|
||||
'is_readonly' => true,
|
||||
]);
|
||||
});
|
||||
static::forceDeleting(function ($database) {
|
||||
|
@@ -24,7 +24,6 @@ class StandaloneMongodb extends BaseModel
|
||||
'host_path' => null,
|
||||
'resource_id' => $database->id,
|
||||
'resource_type' => $database->getMorphClass(),
|
||||
'is_readonly' => true,
|
||||
]);
|
||||
LocalPersistentVolume::create([
|
||||
'name' => 'mongodb-db-'.$database->uuid,
|
||||
@@ -32,7 +31,6 @@ class StandaloneMongodb extends BaseModel
|
||||
'host_path' => null,
|
||||
'resource_id' => $database->id,
|
||||
'resource_type' => $database->getMorphClass(),
|
||||
'is_readonly' => true,
|
||||
]);
|
||||
});
|
||||
static::forceDeleting(function ($database) {
|
||||
|
@@ -29,7 +29,6 @@ class StandaloneMysql extends BaseModel
|
||||
'host_path' => null,
|
||||
'resource_id' => $database->id,
|
||||
'resource_type' => $database->getMorphClass(),
|
||||
'is_readonly' => true,
|
||||
]);
|
||||
});
|
||||
static::forceDeleting(function ($database) {
|
||||
|
@@ -29,7 +29,6 @@ class StandalonePostgresql extends BaseModel
|
||||
'host_path' => null,
|
||||
'resource_id' => $database->id,
|
||||
'resource_type' => $database->getMorphClass(),
|
||||
'is_readonly' => true,
|
||||
]);
|
||||
});
|
||||
static::forceDeleting(function ($database) {
|
||||
|
@@ -24,7 +24,6 @@ class StandaloneRedis extends BaseModel
|
||||
'host_path' => null,
|
||||
'resource_id' => $database->id,
|
||||
'resource_type' => $database->getMorphClass(),
|
||||
'is_readonly' => true,
|
||||
]);
|
||||
});
|
||||
static::forceDeleting(function ($database) {
|
||||
|
@@ -6,8 +6,7 @@
|
||||
:resource="$resource" :isFirst="$loop->first" isService='true' />
|
||||
@else
|
||||
<livewire:project.shared.storages.show wire:key="storage-{{ $storage->id }}" :storage="$storage"
|
||||
:resource="$resource" isReadOnly="{{ data_get($storage, 'is_readonly') }}"
|
||||
startedAt="{{ data_get($resource, 'started_at') }}" />
|
||||
:resource="$resource" startedAt="{{ data_get($resource, 'started_at') }}" />
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user