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,
|
'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 @@ class StandaloneDragonfly extends BaseModel
|
|||||||
'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 @@ class StandaloneKeydb extends BaseModel
|
|||||||
'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 @@ class StandaloneMariadb extends BaseModel
|
|||||||
'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 @@ class StandaloneMongodb extends BaseModel
|
|||||||
'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 @@ class StandaloneMongodb extends BaseModel
|
|||||||
'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 @@ class StandaloneMysql extends BaseModel
|
|||||||
'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 @@ class StandalonePostgresql extends BaseModel
|
|||||||
'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 @@ class StandaloneRedis extends BaseModel
|
|||||||
'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>
|
||||||
|
Reference in New Issue
Block a user