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

Commit

Permalink
BUG: refs #0326. changed item.description datatype for mysql and pgsq…
Browse files Browse the repository at this point in the history
…l to text.
  • Loading branch information
Michael Grauer committed Nov 3, 2011
1 parent d646917 commit deaca3f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions core/database/upgrade/3.1.3.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

class Upgrade_3_1_3 extends MIDASUpgrade
{
public function preUpgrade()
{
}

public function mysql()
{
$sql = "ALTER TABLE item MODIFY description TEXT NOT NULL;";
$this->db->query($sql);
}


public function pgsql()
{
$sql = "ALTER TABLE item ALTER COLUMN description TYPE TEXT;";
$this->db->query($sql);
}

public function postUpgrade()
{
}
}
?>

0 comments on commit deaca3f

Please sign in to comment.