Xataface 2.0
Xataface Application Framework
Dataface/PreferencesTool/_createPreferencesTable.php
Go to the documentation of this file.
00001 <?php
00007 function Dataface_PreferencesTool__createPreferencesTable(){
00008         $res = mysql_query(
00009                 "create table if not exists `dataface__preferences` (
00010                         `pref_id` int(11) unsigned not null auto_increment,
00011                         `username` varchar(64) not null,
00012                         `table` varchar(128) not null,
00013                         `record_id` varchar(255) not null,
00014                         `key` varchar(128) not null,
00015                         `value` varchar(255) not null,
00016                         primary key (pref_id),
00017                         index `username` (`username`),
00018                         index `table` (`table`),
00019                         index `record_id` (`record_id`))", df_db());
00020         if ( !$res ) throw new Exception(mysql_error(df_db()), E_USER_ERROR);
00021 
00022 }
 All Data Structures Namespaces Files Functions Variables Enumerations