Xataface  2.0alpha2
Xataface Application Framework
 All Data Structures Namespaces Files Functions Variables Groups Pages
createConfigTable.function.php
Go to the documentation of this file.
1 <?php
12  if ( !Dataface_Table::tableExists($self->configTableName, false) ){
13  $sql = "CREATE TABLE `".$self->configTableName."` (
14  config_id int(11) NOT NULL auto_increment primary key,
15  `file` varchar(255) NOT NULL,
16  `section` varchar(128),
17  `key` varchar(128) NOT NULL,
18  `value` text NOT NULL,
19  `lang` varchar(2),
20  `username` varchar(32),
21  `priority` int(5) default 5
22  )";
23  $res = mysql_query($sql, df_db());
24  if ( !$res ){
25  throw new Exception(mysql_error(df_db()), E_USER_ERROR);
26 
27  }
28  }
29 
30 }