An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
refactor(models): remove 'is_readonly' attribute from multiple database models for consistency
Andras Bacsaif64622c764fa
diff --git a/app/Models/StandaloneClickhouse.php b/app/Models/StandaloneClickhouse.phpindex 60a750a99c..88142066f9 100644--- a/app/Models/StandaloneClickhouse.php+++ b/app/Models/StandaloneClickhouse.php@@ -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) {diff --git a/app/Models/StandaloneDragonfly.php b/app/Models/StandaloneDragonfly.phpindex 673851713a..b7d22a2ce3 100644--- a/app/Models/StandaloneDragonfly.php+++ b/app/Models/StandaloneDragonfly.php@@ -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) {diff --git a/app/Models/StandaloneKeydb.php b/app/Models/StandaloneKeydb.phpindex e6562193b8..807728a36b 100644--- a/app/Models/StandaloneKeydb.php+++ b/app/Models/StandaloneKeydb.php@@ -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) {diff --git a/app/Models/StandaloneMariadb.php b/app/Models/StandaloneMariadb.phpindex 1aa9d63c1c..8d602c27d2 100644--- a/app/Models/StandaloneMariadb.php+++ b/app/Models/StandaloneMariadb.php@@ -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) {diff --git a/app/Models/StandaloneMongodb.php b/app/Models/StandaloneMongodb.phpindex 299ea75b2c..f222b0e5ce 100644--- a/app/Models/StandaloneMongodb.php+++ b/app/Models/StandaloneMongodb.php@@ -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) {diff --git a/app/Models/StandaloneMysql.php b/app/Models/StandaloneMysql.phpindex f376c7644f..e4693c76a4 100644--- a/app/Models/StandaloneMysql.php+++ b/app/Models/StandaloneMysql.php@@ -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) {diff --git a/app/Models/StandalonePostgresql.php b/app/Models/StandalonePostgresql.phpindex 0bca2f4a74..47c984ff73 100644--- a/app/Models/StandalonePostgresql.php+++ b/app/Models/StandalonePostgresql.php@@ -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) {diff --git a/app/Models/StandaloneRedis.php b/app/Models/StandaloneRedis.phpindex 6a44ee7148..79c6572ab9 100644--- a/app/Models/StandaloneRedis.php+++ b/app/Models/StandaloneRedis.php@@ -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) {diff --git a/resources/views/livewire/project/shared/storages/all.blade.php b/resources/views/livewire/project/shared/storages/all.blade.phpindex 4ed1d1b521..45dad78b1b 100644--- a/resources/views/livewire/project/shared/storages/all.blade.php+++ b/resources/views/livewire/project/shared/storages/all.blade.php@@ -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>