Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
fluxfw committed Jun 2, 2020
1 parent 9501820 commit cf0dd69
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 65 deletions.
9 changes: 9 additions & 0 deletions classes/class.ilSrTilePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,15 @@ public function handleEvent(/*string*/ $a_component, /*string*/ $a_event, /*arra
}


/**
* @inheritDoc
*/
protected function shouldUseOneUpdateStepOnly() : bool
{
return true;
}


/**
* @inheritDoc
*/
Expand Down
64 changes: 0 additions & 64 deletions sql/dbupdate.php
Original file line number Diff line number Diff line change
@@ -1,68 +1,4 @@
<#1>
<?php
//
?>
<#2>
<?php
//
?>
<#3>
<?php
//
?>
<#4>
<?php
//
?>
<#5>
<?php
//
?>
<#6>
<?php
//
?>
<#7>
<?php
//
?>
<#8>
<?php
//
?>
<#9>
<?php
//
?>
<#10>
<?php
//
?>
<#11>
<?php
//
?>
<#12>
<?php
//
?>
<#13>
<?php
//
?>
<#14>
<?php
//
?>
<#15>
<?php
//
?>
<#16>
<?php
//
?>
<#17>
<?php
\srag\Plugins\SrTile\Repository::getInstance()->installTables();
?>
20 changes: 19 additions & 1 deletion vendor/srag/removeplugindataconfirm/src/PluginUninstallTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ trait PluginUninstallTrait

use BasePluginUninstallTrait;


/**
* @return bool
*
Expand All @@ -33,4 +32,23 @@ protected final function afterUninstall()/*: void*/
{

}


/**
* @inheritDoc
*/
public function updateDatabase()
{
if ($this->shouldUseOneUpdateStepOnly()) {
$this->writeDBVersion(0);
}

return parent::updateDatabase();
}


/**
* @return bool
*/
protected abstract function shouldUseOneUpdateStepOnly() : bool;
}

0 comments on commit cf0dd69

Please sign in to comment.