-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from lsst-epo/EPO-7944
Epo 7944
- Loading branch information
Showing
6 changed files
with
74 additions
and
13 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,20 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [0.4] - 04-12-2023 | ||
|
||
### Changed | ||
|
||
- Namespace change from rosas -> lsst | ||
|
||
### Fixed | ||
|
||
- Tech debt clean-up: | ||
- PhpStorm-isms for method/class annotations | ||
- Miscellaneous tech debt clean-up | ||
- Changed return type of exception logic in Assets service to string | ||
- Changed logging to Craft::warn() for stdout |
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
45 changes: 45 additions & 0 deletions
45
src/migrations/m230412_233209_namespace_change_migration.php
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,45 @@ | ||
<?php | ||
|
||
namespace lsst\dam\migrations; | ||
|
||
use Craft; | ||
use craft\db\Migration; | ||
|
||
/** | ||
* m230412_233209_namespace_change_migration migration. | ||
*/ | ||
class m230412_233209_namespace_change_migration extends Migration | ||
{ | ||
/** | ||
* @inheritdoc | ||
*/ | ||
public function safeUp(): bool | ||
{ | ||
echo "m230412_233209_namespace_change_migration executing...\n"; | ||
|
||
$this->update('{{%fields}}', [ | ||
"type" => 'lsst\dam\fields\DAMAsset' | ||
],[ | ||
"type" => 'rosas\dam\fields\DAMAsset' | ||
] | ||
); | ||
|
||
return true; | ||
} | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
public function safeDown(): bool | ||
{ | ||
echo "m230412_233209_namespace_change_migration is be reverted.\n"; | ||
|
||
$this->update('{{%fields}}', [ | ||
"type" => 'rosas\dam\fields\DAMAsset' | ||
],[ | ||
"type" => 'lsst\dam\fields\DAMAsset' | ||
] | ||
); | ||
return true; | ||
} | ||
} |
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