This repository has been archived by the owner on Jul 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CoreBundle] Update improvements (#2520)
* [CoreBundle] VERSION.txt building script. * Removing the branch creation. * wip * Removing version file * Uncommenting stuff * Create VERSION.txt * wip * Changelog tracking * md file * use printf instead of echo * md link * double space ending md * starts with hyphen * Changelog links * uncomment * add title * Register the current version at the v10 upgrade. * Saving before doing stuff that might brake everything * db version registration * wip * Claroline update command allows to use version * phpmd * phpmd * Remove outdated unit tests * test if db up to date * Removing the previous repository snapshot from OperationExecutor update * phpmd
- Loading branch information
1 parent
f512e07
commit ef7c925
Showing
124 changed files
with
1,032 additions
and
826 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
10.0.0-rc4 | ||
392f397fcdd7cfe5f5f288cf5f09c21b26e69247 | ||
master |
Empty file.
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
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
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,151 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Claroline Connect package. | ||
* | ||
* (c) Claroline Consortium <consortium@claroline.net> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Claroline\CoreBundle\Entity\Update; | ||
|
||
use Claroline\CoreBundle\Library\Installation\PackageInterface; | ||
use Doctrine\ORM\Mapping as ORM; | ||
use Gedmo\Mapping\Annotation as Gedmo; | ||
|
||
/** | ||
* uniqueConstraints={. | ||
* | ||
* @ORM\UniqueConstraint( | ||
* name="unique_version", | ||
* columns={"version", "bundle", "branch"} | ||
* ) | ||
* } | ||
*/ | ||
|
||
/** | ||
* @ORM\Entity(repositoryClass="Claroline\CoreBundle\Repository\VersionRepository") | ||
* @ORM\Table( | ||
* name="claro_version" | ||
*) | ||
*/ | ||
class Version implements PackageInterface | ||
{ | ||
/** | ||
* @ORM\Id | ||
* @ORM\Column(type="integer") | ||
* @ORM\GeneratedValue(strategy="AUTO") | ||
* @ORM\GeneratedValue(strategy="AUTO") | ||
*/ | ||
protected $id; | ||
|
||
/** | ||
* @ORM\Column() | ||
*/ | ||
protected $commit; | ||
|
||
/** | ||
* @ORM\Column() | ||
*/ | ||
protected $version; | ||
|
||
/** | ||
* @ORM\Column() | ||
*/ | ||
protected $branch; | ||
|
||
/** | ||
* @ORM\Column() | ||
*/ | ||
protected $bundle; | ||
|
||
/** | ||
* @ORM\Column(name="is_upgraded", type="boolean") | ||
*/ | ||
protected $isUpgraded = false; | ||
|
||
/** | ||
* @ORM\Column(type="integer", nullable=true) | ||
* | ||
* @Gedmo\Timestampable(on="create") | ||
* | ||
* @var \DateTime | ||
*/ | ||
protected $date; | ||
|
||
public function __construct($version = null, $commit = null, $branch = null, $bundle = null) | ||
{ | ||
$this->version = $version; | ||
$this->commit = $commit; | ||
$this->branch = $branch; | ||
$this->bundle = $bundle; | ||
} | ||
|
||
public function getId() | ||
{ | ||
return $this->id; | ||
} | ||
|
||
public function setCommit($commit) | ||
{ | ||
$this->commit = $commit; | ||
} | ||
|
||
public function getCommit($commit) | ||
{ | ||
$this->commit = $commit; | ||
} | ||
|
||
public function setVersion($version) | ||
{ | ||
$this->version = $version; | ||
} | ||
|
||
public function getVersion() | ||
{ | ||
return $this->version; | ||
} | ||
|
||
public function setBranch($branch) | ||
{ | ||
$this->branch = $branch; | ||
} | ||
|
||
public function getBranch() | ||
{ | ||
return $this->branch; | ||
} | ||
|
||
public function setDate($date) | ||
{ | ||
$this->date = $date; | ||
} | ||
|
||
public function getDate() | ||
{ | ||
return $this->date; | ||
} | ||
|
||
public function setIsUpgraded($bool) | ||
{ | ||
$this->isUpgraded = $bool; | ||
} | ||
|
||
public function isUpgraded() | ||
{ | ||
return $this->isUpgraded; | ||
} | ||
|
||
public function getBundle() | ||
{ | ||
return $this->bundle; | ||
} | ||
|
||
//alias | ||
public function getName() | ||
{ | ||
return $this->getBundle(); | ||
} | ||
} |
Oops, something went wrong.