Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit deaca3f

Browse files
author
Michael Grauer
committed
BUG: refs #0326. changed item.description datatype for mysql and pgsql to text.
1 parent d646917 commit deaca3f

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

core/database/upgrade/3.1.3.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
class Upgrade_3_1_3 extends MIDASUpgrade
4+
{
5+
public function preUpgrade()
6+
{
7+
}
8+
9+
public function mysql()
10+
{
11+
$sql = "ALTER TABLE item MODIFY description TEXT NOT NULL;";
12+
$this->db->query($sql);
13+
}
14+
15+
16+
public function pgsql()
17+
{
18+
$sql = "ALTER TABLE item ALTER COLUMN description TYPE TEXT;";
19+
$this->db->query($sql);
20+
}
21+
22+
public function postUpgrade()
23+
{
24+
}
25+
}
26+
?>

0 commit comments

Comments
 (0)