mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 00:18:25 +00:00
Revert archive
This commit is contained in:
parent
25b661b908
commit
b23f7b0725
1 changed files with 15 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ class Migration extends Event
|
|||
{
|
||||
protected string $type = '';
|
||||
protected ?Document $migration = null;
|
||||
protected ?Document $archive = null;
|
||||
|
||||
public function __construct(protected Connection $connection)
|
||||
{
|
||||
|
|
@ -82,6 +83,20 @@ class Migration extends Event
|
|||
'project' => $this->project,
|
||||
'user' => $this->user,
|
||||
'migration' => $this->migration,
|
||||
'archive' => $this->archive
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets archive
|
||||
*
|
||||
* @param Document $archive
|
||||
* @return self
|
||||
*/
|
||||
public function setArchive(Document $archive): self
|
||||
{
|
||||
$this->archive = $archive;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue