Skip to content

Commit

Permalink
Use boolean instead of 0 in install migration
Browse files Browse the repository at this point in the history
  • Loading branch information
janhenckens committed Apr 10, 2024
1 parent c2a8a86 commit d3124a0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes for carbon-tracker

## 5.0.1 - 2024-04-10
### Fixed
- Fixed an installation error when using PostgreSQL ([#8](https://github.com/statikbe/craft-carbon-tracker/issues/8))

## 5.0.0 - 2024-03-12
### Added
- Craft 5 support 🚀
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "statikbe/craft-carbon-tracker",
"description": "Carbon tracker aims to raise awareness of the carbon emissions created by webpages, by displaying these insights along side the content in Craft's control panel.",
"type": "craft-plugin",
"version": "5.0.0",
"version": "5.0.1",
"license": "mit",
"support": {
"email": "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion src/migrations/Install.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function safeUp(): bool
'entryId' => $this->integer()->notNull(),
'siteId' => $this->integer()->notNull(),
'url' => $this->string()->notNull(),
'green' => $this->boolean()->defaultValue(0),
'green' => $this->boolean()->defaultValue(false),
'bytes' => $this->integer(),
'cleanerThan' => $this->float()->defaultValue(0.0),
'rating' => $this->string(2),
Expand Down

0 comments on commit d3124a0

Please sign in to comment.