File: 08-upgrade-remove-user-table

package info (click to toggle)
phpwiki 1.3.12p3-5etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 16,956 kB
  • ctags: 21,608
  • sloc: php: 82,335; xml: 3,840; sh: 1,522; sql: 1,198; perl: 625; makefile: 562; awk: 28
file content (37 lines) | stat: -rw-r--r-- 1,167 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#! /bin/sh /usr/share/dpatch/dpatch-run
## upgrade-remove-usertable by  <debian@mattb.net.nz>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: The user table is deprecated and should not be created by the
## DP: upgrade wizard

@DPATCH@

--- phpwiki-1.3.12p3.orig/lib/upgrade.php
+++ phpwiki-1.3.12p3/lib/upgrade.php
@@ -207,25 +207,6 @@
         $dbh->genericSqlQuery("CREATE INDEX sess_date on session (sess_date)");
         echo "  ",_("CREATED");
         break;
-    case 'user':
-        $user_tbl = $prefix.'user';
-        if ($backend_type == 'mysql') {
-            $dbh->genericSqlQuery("
-CREATE TABLE $user_tbl (
-  	userid 	CHAR(48) BINARY NOT NULL UNIQUE,
-  	passwd 	CHAR(48) BINARY DEFAULT '',
-  	PRIMARY KEY (userid)
-)");
-        } else {
-            $dbh->genericSqlQuery("
-CREATE TABLE $user_tbl (
-  	userid 	CHAR(48) NOT NULL,
-  	passwd 	CHAR(48) DEFAULT ''
-)");
-            $dbh->genericSqlQuery("CREATE UNIQUE INDEX userid ON $user_tbl (userid)");
-        }
-        echo "  ",_("CREATED");
-        break;
     case 'pref':
         $pref_tbl = $prefix.'pref';
         if ($backend_type == 'mysql') {