Skip to content

Commit

Permalink
fix #6
Browse files Browse the repository at this point in the history
  • Loading branch information
matfish3 committed Jan 26, 2024
1 parent 873a195 commit 559eb81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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 Optimum

## 1.3.0 - 2024-01-26
### Fixed
- Install Migration: Use dateTime()->notNull() instead of timestamp() [(#6)](https://github.com/matfish2/craft-optimum/issues/6)

## 1.2.2 - 2023-10-09
- Validate Unique Name and Handle [(#4)](https://github.com/matfish2/craft-optimum/issues/4)
- Hard Delete Experiment Element[(#4)](https://github.com/matfish2/craft-optimum/issues/4)
Expand Down
8 changes: 4 additions & 4 deletions src/migrations/Install.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ public function safeUp()
'startAt' => $this->dateTime()->null(),
'endAt' => $this->dateTime()->null(),
'enabled' => $this->boolean()->defaultValue(false),
'dateCreated' => $this->timestamp(),
'dateUpdated' => $this->timestamp()
'dateCreated' => $this->dateTime()->notNull(),
'dateUpdated' => $this->dateTime()->notNull()
]);
}

Expand All @@ -32,8 +32,8 @@ public function safeUp()
'handle' => $this->string()->notNull(), // Used as template name
'description' => $this->string()->null(),
'weight' => $this->smallInteger()->notNull(), // in percents
'dateCreated' => $this->timestamp(),
'dateUpdated' => $this->timestamp()
'dateCreated' => $this->dateTime()->notNull(),
'dateUpdated' => $this->dateTime()->notNull()
]);
}
}
Expand Down

0 comments on commit 559eb81

Please sign in to comment.