srchub-old

srchub-old Mercurial Source Tree


Root/indefero/src/IDF/Migrations/29EnableAds.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
30
31
32
33
34
35
36
<?php
 
function IDF_Migrations_29EnableAds_up()
{
    $table = Pluf::factory('IDF_Project')->getSqlTable();
 
    $sql = array();
 
    $sql["MySQL"] = "ALTER TABLE " . $table . " ADD COLUMN `enableads` int(11) NULL AFTER `current_activity`;";
 
    $db = Pluf::db();
    $engine = Pluf::f('db_engine');
    if (!isset($sql[$engine])) {
        throw new Exception('SQLite complex migration not supported.');
    }
 
    $db->execute($sql[$engine]);
 
}
 
function IDF_Migrations_28OTPKey_down()
{
    $table = Pluf::factory('IDF_Project')->getSqlTable();
 
    $sql = array();
 
    $sql["MySQL"] = "ALTER TABLE " . $table . " DROP COLUMN `enableads`;";
 
    $db = Pluf::db();
    $engine = Pluf::f('db_engine');
    if (!isset($sql[$engine])) {
        throw new Exception('SQLite complex migration not supported.');
    }
 
    $db->execute($sql[$engine]);
}
Source at commit 913d86aa4ab2 created 10 years 9 months ago.
By "Nathan Adams ", Adding entry for objective-c and ASM in autoloader

Archive Download this file

Branches

Tags

Page rendered in 0.83856s using 11 queries.