Implement version table, update APIs when getting version info from github because the tags API was not retrieving our current git tags
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user