Use checksum more broadly, not specifically SHA256

This commit is contained in:
Dane Everitt 2020-08-23 18:06:47 -07:00
parent 4cd44d2025
commit 034a310702
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
8 changed files with 50 additions and 9 deletions

View file

@ -12,7 +12,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
* @property string $name
* @property string[] $ignored_files
* @property string $disk
* @property string|null $sha256_hash
* @property string|null $checksum
* @property int $bytes
* @property \Carbon\CarbonImmutable|null $completed_at
* @property \Carbon\CarbonImmutable $created_at
@ -62,7 +62,7 @@ class Backup extends Model
*/
protected $attributes = [
'is_successful' => true,
'sha256_hash' => null,
'checksum' => null,
'bytes' => 0,
];
@ -76,7 +76,7 @@ class Backup extends Model
'name' => 'required|string',
'ignored_files' => 'array',
'disk' => 'required|string',
'sha256_hash' => 'nullable|string',
'checksum' => 'nullable|string',
'bytes' => 'numeric',
];