From 13563f339686555e608d1ff150ff7b8062714239 Mon Sep 17 00:00:00 2001 From: PhilBau Date: Thu, 3 Jan 2013 16:32:37 +0100 Subject: [PATCH] With table definitions, it's better. --- tables.php | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 tables.php diff --git a/tables.php b/tables.php new file mode 100644 index 0000000..dfee49a --- /dev/null +++ b/tables.php @@ -0,0 +1,48 @@ + 'id', + 'message' => 'message', + 'gid' => 'gid', // selected group id + 'bid' => 'bid' // ShoutIt block ID + ); + $tables['shoutit_messages_column_def'] = array( + 'id' => "I8 NOTNULL AUTO PRIMARY", + 'message' => "X NOTNULL DEFAULT ''", + 'gid' => "I4 NOTNULL DEFAULT '1'", + 'bid' => "I4 NOTNULL DEFAULT ''" + ); + + ObjectUtil::addStandardFieldsToTableDefinition ($tables['shoutit_messages_column'], ''); + ObjectUtil::addStandardFieldsToTableDataDefinition($tables['shoutit_messages_column_def']); + $tables['shoutit_messages_primary_key_column'] = 'id'; + + // Return the table information + return $tables; +} +?>