[Pkg-owncloud-commits] [php-sabredav] 56/66: Using VARBINARY where possible.

David Prévot taffit at moszumanska.debian.org
Wed May 27 13:56:57 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to tag 3.0.0-alpha1
in repository php-sabredav.

commit c4a5f3ef21ab152fce446905c8d20b2ad6aa413c
Author: Evert Pot <me at evertpot.com>
Date:   Mon May 18 12:25:58 2015 +0300

    Using VARBINARY where possible.
---
 examples/sql/mysql.addressbook.sql |  8 ++++----
 examples/sql/mysql.calendars.sql   | 16 ++++++++--------
 examples/sql/mysql.principals.sql  |  4 ++--
 examples/sql/mysql.users.sql       |  4 ++--
 4 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/examples/sql/mysql.addressbook.sql b/examples/sql/mysql.addressbook.sql
index f9c3c95..5ec8428 100644
--- a/examples/sql/mysql.addressbook.sql
+++ b/examples/sql/mysql.addressbook.sql
@@ -1,8 +1,8 @@
 CREATE TABLE addressbooks (
     id INT(11) UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
-    principaluri VARCHAR(255),
+    principaluri VARBINARY(255),
     displayname VARCHAR(255),
-    uri VARCHAR(200),
+    uri VARBINARY(200),
     description TEXT,
     synctoken INT(11) UNSIGNED NOT NULL DEFAULT '1',
     UNIQUE(principaluri(100), uri(100))
@@ -12,7 +12,7 @@ CREATE TABLE cards (
     id INT(11) UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
     addressbookid INT(11) UNSIGNED NOT NULL,
     carddata MEDIUMBLOB,
-    uri VARCHAR(200),
+    uri VARBINARY(200),
     lastmodified INT(11) UNSIGNED,
     etag VARBINARY(32),
     size INT(11) UNSIGNED NOT NULL
@@ -20,7 +20,7 @@ CREATE TABLE cards (
 
 CREATE TABLE addressbookchanges (
     id INT(11) UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
-    uri VARCHAR(200) NOT NULL,
+    uri VARBINARY(200) NOT NULL,
     synctoken INT(11) UNSIGNED NOT NULL,
     addressbookid INT(11) UNSIGNED NOT NULL,
     operation TINYINT(1) NOT NULL,
diff --git a/examples/sql/mysql.calendars.sql b/examples/sql/mysql.calendars.sql
index 15eed35..55d3b48 100644
--- a/examples/sql/mysql.calendars.sql
+++ b/examples/sql/mysql.calendars.sql
@@ -9,7 +9,7 @@ CREATE TABLE calendarobjects (
     componenttype VARBINARY(8),
     firstoccurence INT(11) UNSIGNED,
     lastoccurence INT(11) UNSIGNED,
-    uid VARCHAR(200),
+    uid VARBINARY(200),
     UNIQUE(calendarid, uri)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
 
@@ -30,7 +30,7 @@ CREATE TABLE calendars (
 
 CREATE TABLE calendarchanges (
     id INT(11) UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
-    uri VARCHAR(200) NOT NULL,
+    uri VARBINARY(200) NOT NULL,
     synctoken INT(11) UNSIGNED NOT NULL,
     calendarid INT(11) UNSIGNED NOT NULL,
     operation TINYINT(1) NOT NULL,
@@ -39,13 +39,13 @@ CREATE TABLE calendarchanges (
 
 CREATE TABLE calendarsubscriptions (
     id INT(11) UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
-    uri VARCHAR(200) NOT NULL,
-    principaluri VARCHAR(100) NOT NULL,
+    uri VARBINARY(200) NOT NULL,
+    principaluri VARBINARY(100) NOT NULL,
     source TEXT,
     displayname VARCHAR(100),
     refreshrate VARCHAR(10),
     calendarorder INT(11) UNSIGNED NOT NULL DEFAULT '0',
-    calendarcolor VARCHAR(10),
+    calendarcolor VARBINARY(10),
     striptodos TINYINT(1) NULL,
     stripalarms TINYINT(1) NULL,
     stripattachments TINYINT(1) NULL,
@@ -55,10 +55,10 @@ CREATE TABLE calendarsubscriptions (
 
 CREATE TABLE schedulingobjects (
     id INT(11) UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
-    principaluri VARCHAR(255),
+    principaluri VARBINARY(255),
     calendardata MEDIUMBLOB,
-    uri VARCHAR(200),
+    uri VARBINARY(200),
     lastmodified INT(11) UNSIGNED,
-    etag VARCHAR(32),
+    etag VARBINARY(32),
     size INT(11) UNSIGNED NOT NULL
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
diff --git a/examples/sql/mysql.principals.sql b/examples/sql/mysql.principals.sql
index 423a5d1..e23e40e 100644
--- a/examples/sql/mysql.principals.sql
+++ b/examples/sql/mysql.principals.sql
@@ -1,7 +1,7 @@
 CREATE TABLE principals (
     id INTEGER UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
-    uri VARCHAR(200) NOT NULL,
-    email VARCHAR(80),
+    uri VARBINARY(200) NOT NULL,
+    email VARBINARY(80),
     displayname VARCHAR(80),
     UNIQUE(uri)
 );
diff --git a/examples/sql/mysql.users.sql b/examples/sql/mysql.users.sql
index 1244f59..ab67b47 100644
--- a/examples/sql/mysql.users.sql
+++ b/examples/sql/mysql.users.sql
@@ -1,7 +1,7 @@
 CREATE TABLE users (
     id INTEGER UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
-    username VARCHAR(50),
-    digesta1 VARCHAR(32),
+    username VARBINARY(50),
+    digesta1 VARBINARY(32),
     UNIQUE(username)
 );
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git



More information about the Pkg-owncloud-commits mailing list