mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Revert archive
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user