Skip to content

Commit

Permalink
Install migration: use dateTime()->notNull() instead of timestamp()
Browse files Browse the repository at this point in the history
  • Loading branch information
matfish3 committed Jan 26, 2024
1 parent c7b66d8 commit 11ea310
Show file tree
Hide file tree
Showing 2 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 Element Meta

## 4.1.0 - 2024-01-26
### Fixed
- Install migration: use `dateTime()->notNull()` instead of `timestamp()`

## 4.0.0 - 2023-07-30
> {note} Breaking Change. See [README](https://github.com/matfish2/craft-entry-meta#migrating-to-version-4) for further information
### Improved
Expand Down
4 changes: 2 additions & 2 deletions src/migrations/Install.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public function safeUp()
'elementType' => $this->string()->notNull(),
'elementId' => $this->integer()->notNull(),
'data' => $this->text()->notNull(),
'dateCreated' => $this->timestamp(),
'dateUpdated' => $this->timestamp()
'dateCreated' => $this->dateTime()->notNull(),
'dateUpdated' => $this->dateTime()->notNull()
]);

$this->createIndex('unique_element', '{{%elementmeta}}', ['elementType', 'elementId'], true);
Expand Down

0 comments on commit 11ea310

Please sign in to comment.