Implement version table, update APIs when getting version info from github because the tags API was not retrieving our current git tags
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 30s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m24s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s

This commit is contained in:
2025-03-09 21:54:23 +11:00
parent e6827082cb
commit 7e720b1970
5 changed files with 111 additions and 13 deletions

View File

@@ -6,6 +6,8 @@ use Illuminate\Database\Eloquent\Model;
class Site extends Model
{
const UPDATED_AT = NULL;
protected $fillable = ['ip_address'];
/* RELATIONS */

View File

@@ -7,6 +7,8 @@ use Illuminate\Database\Eloquent\Model;
class SiteVersion extends Model
{
const UPDATED_AT = NULL;
/* RELATIONS */
public function sites()
@@ -14,6 +16,11 @@ class SiteVersion extends Model
return $this->belongsTo(Site::class);
}
public function versions()
{
return $this->belongsTo(Version::class);
}
/* ATTRIBUTES */
public function getDateAttribute(): int
{

12
app/Models/Version.php Normal file
View File

@@ -0,0 +1,12 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Version extends Model
{
const UPDATED_AT = NULL;
protected $fillable = ['version'];
}