summaryrefslogtreecommitdiffstats
path: root/authfas.install
diff options
context:
space:
mode:
authorPaul W. Frields <stickster@gmail.com>2010-07-10 16:23:04 -0400
committerPaul W. Frields <stickster@gmail.com>2010-07-10 16:23:04 -0400
commite8e8e6eda806f81b9fb21f7eadad0e82cbeebe31 (patch)
tree00887c15e42f4e8f721e1def624a96830502cca4 /authfas.install
parent18b8361a7e323b5e28fbd9bb21d31ea6a5a83fea (diff)
downloaddrupal-authfas-6x-e8e8e6eda806f81b9fb21f7eadad0e82cbeebe31.tar.gz
drupal-authfas-6x-e8e8e6eda806f81b9fb21f7eadad0e82cbeebe31.tar.xz
drupal-authfas-6x-e8e8e6eda806f81b9fb21f7eadad0e82cbeebe31.zip
Add schema for new mapping table
Diffstat (limited to 'authfas.install')
-rw-r--r--authfas.install25
1 files changed, 25 insertions, 0 deletions
diff --git a/authfas.install b/authfas.install
new file mode 100644
index 0000000..b07297f
--- /dev/null
+++ b/authfas.install
@@ -0,0 +1,25 @@
+<?php
+function authfas_schema() {
+ $schema['authfas_ridmap'] = array(
+ 'description' => "A map of rid's to FAS group names.",
+ 'fields' => array(
+ 'rid' => array(
+ 'description' => 'Identifier for a role.',
+ 'type' => 'int',
+ 'unsigned' => TRUE,
+ 'not null' => TRUE,),
+ 'fasgroup' => array(
+ 'description' => 'The name of a FAS group.',
+ 'type' => 'varchar',
+ 'length' => 255,
+ 'not null' => TRUE,
+ 'default' => '')));
+}
+
+function authfas_install() {
+ drupal_install_schema('authfas');
+}
+
+function authfas_uninstall() {
+ drupal_uninstall_schema('authfas');
+}