-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ignore timestamp changes * fire FORCE_DELETE event type when non soft deletes are occurring * adding tests for force delete checks
- Loading branch information
Tom Schlick
authored
Aug 16, 2019
1 parent
c92aed1
commit 466d391
Showing
6 changed files
with
80 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,5 @@ class EventType | |
const UPDATED = 2; | ||
const DELETED = 3; | ||
const RESTORED = 4; | ||
const FORCE_DELETED = 5; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace OrisIntel\AuditLog\Tests\Fakes\Models; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
use OrisIntel\AuditLog\Traits\AuditLoggable; | ||
|
||
class NonSoftDeletePost extends Model | ||
{ | ||
use AuditLoggable; | ||
|
||
protected $guarded = []; | ||
|
||
protected $table = 'posts'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace OrisIntel\AuditLog\Tests\Fakes\Models; | ||
|
||
use OrisIntel\AuditLog\Models\BaseModel; | ||
|
||
class NonSoftDeletePostAuditLog extends BaseModel | ||
{ | ||
public $timestamps = false; | ||
|
||
public $table = 'posts_auditlog'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters