forked from zikula-modules/Files
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtables.php
34 lines (33 loc) · 1.16 KB
/
tables.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
<?php
/**
* Zikula Application Framework
*
* @copyright (c) Zikula Development Team
* @link http://www.zikula.org
* @version $Id: pntables.php 202 2009-12-09 20:28:11Z aperezm $
* @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
* @author Albert Pérez Monfort <[email protected]>
* @category Zikula_Extension
* @package Utilities
* @subpackage Files
*/
/**
* Define module tables
* @author Albert Pérez Monfort
* @return module tables information
*/
function Files_tables()
{
// Initialise table array
$pntable = array();
// Files table definition
$pntable['Files'] = DBUtil::getLimitedTablename('Files');
$pntable['Files_column'] = array('fileId' => 'fileId',
'userId' => 'userId',
'diskUse' => 'diskUse');
$pntable['Files_column_def'] = array('fileId' => "I NOTNULL AUTO PRIMARY",
'userId' => "I NOTNULL DEFAULT 0",
'diskUse' => "I NOTNULL DEFAULT '0'");
// Return the table information
return $pntable;
}