From 0640f6ca5b1a94a21acbaf80999c04aaa70bf9f1 Mon Sep 17 00:00:00 2001 From: stephan Date: Mon, 19 Apr 2010 09:21:10 +0000 Subject: [PATCH] - add db descriptions so that the schema module can parse them, see http://drupal.org/node/588694 - bump PKG_NAME prodded and ok espie@ --- www/drupal6/masquerade/Makefile | 4 +- .../patches/patch-masquerade_install | 44 +++++++++++++++++++ 2 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 www/drupal6/masquerade/patches/patch-masquerade_install diff --git a/www/drupal6/masquerade/Makefile b/www/drupal6/masquerade/Makefile index 875520c47e9..ecf70e9d542 100644 --- a/www/drupal6/masquerade/Makefile +++ b/www/drupal6/masquerade/Makefile @@ -1,10 +1,10 @@ -# $OpenBSD: Makefile,v 1.4 2009/09/20 12:25:45 espie Exp $ +# $OpenBSD: Makefile,v 1.5 2010/04/19 09:21:10 stephan Exp $ COMMENT = test site as another user CATEGORIES = devel DISTNAME = masquerade-6.x-1.3 -PKGNAME = drupal6-masquerade-1.3 +PKGNAME = drupal6-masquerade-1.3p0 .include diff --git a/www/drupal6/masquerade/patches/patch-masquerade_install b/www/drupal6/masquerade/patches/patch-masquerade_install new file mode 100644 index 00000000000..9d5cc4cd48d --- /dev/null +++ b/www/drupal6/masquerade/patches/patch-masquerade_install @@ -0,0 +1,44 @@ +$OpenBSD: patch-masquerade_install,v 1.1 2010/04/19 09:21:10 stephan Exp $ +--- masquerade.install.orig Mon Aug 31 19:49:45 2009 ++++ masquerade.install Mon Apr 19 10:22:38 2010 +@@ -15,18 +15,22 @@ + function masquerade_schema() { + return array( + 'masquerade' => array( ++ 'description' => "Each masquerading user has their session recorded into the masquerade table. Each record represents a masquerading user.", + 'fields' => array( + 'sid' => array( ++ 'description' => "The current session for this masquerading user corresponding to their {sessions}.sid.", + 'type' => 'varchar', + 'length' => '64', + 'not null' => TRUE, + 'default' => ''), + 'uid_from' => array( ++ 'description' => 'The {users}.uid corresponding to a session.', + 'type' => 'int', + 'not null' => TRUE, + 'default' => 0, + 'disp-width' => '10'), + 'uid_as' => array( ++ 'description' => 'The {users}.uid this session is masquerading as.', + 'type' => 'int', + 'not null' => TRUE, + 'default' => 0, +@@ -38,14 +42,17 @@ function masquerade_schema() { + ) + ), + 'masquerade_users' => array( ++ 'description' => 'Per-user permission table granting permissions to switch as a specific user.', + 'fields' => array( + 'uid_from' => array( ++ 'description' => 'The {users}.uid that can masquerade as {masquerade_users}.uid_to.', + 'type' => 'int', + 'not null' => true, + 'default' => 0, + 'disp-width' => 10, + ), + 'uid_to' => array( ++ 'description' => 'The {users}.uid that {masquerade_users}.uid_from can masquerade as.', + 'type' => 'int', + 'not null' => true, + 'default' => 0,