srchub

srchub Git Source Tree


Root/indefero/src/IDF/Migrations/32ExternalFile.php

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
 
function IDF_Migrations_32ExternalFile_up()
{
    $table = Pluf::factory('IDF_Upload')->getSqlTable();
 
    $sql = array();
 
    $sql["MySQL"] = "ALTER TABLE " . $table . " ADD COLUMN `ext_file` VARCHAR(250) NULL AFTER `modif_dtime`;";
 
    $db = Pluf::db();
    $engine = Pluf::f('db_engine');
 
    $db->execute($sql[$engine]);
}
 
function IDF_Migrations_32ExternalFile_down()
{
    $table = Pluf::factory('IDF_Upload')->getSqlTable();
 
    $sql = array();
 
    $sql["MySQL"] = "ALTER TABLE " . $table . " DROP COLUMN `ext_file`;";
 
    $db = Pluf::db();
    $engine = Pluf::f('db_engine');
 
    $db->execute($sql[$engine]);
}

Archive Download this file

Branches

Number of commits:
Page rendered in 0.10793s using 11 queries.