Skip to content

Commit

Permalink
fix(SFT-1357): layoutJson column type in freeform_forms table for Pos…
Browse files Browse the repository at this point in the history
…tgreSQL (#1473)
  • Loading branch information
seandelaney authored Aug 14, 2024
1 parent bf4193e commit 51eec55
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function safeUp(): bool
if ($this->db->getIsPgsql()) {
// Manually construct the SQL for Postgres
// (see https://github.com/yiisoft/yii2/issues/12077)
$this->execute('ALTER TABLE {{%freeform_forms}} ALTER COLUMN [[layoutJson]] TYPE LONGTEXT');
$this->execute('ALTER TABLE {{%freeform_forms}} ALTER COLUMN [[layoutJson]] TYPE TEXT');
} else {
$this->alterColumn('{{%freeform_forms}}', 'layoutJson', $this->longText());
}
Expand Down

0 comments on commit 51eec55

Please sign in to comment.