Adds the possibility to forge an url linking to a profile page from networking addresses
[platal.git] / upgrade / fusionax-0.0.1 / 02_networking.sql
index 0da8e66..17172c9 100644 (file)
@@ -2,12 +2,13 @@ CREATE TABLE IF NOT EXISTS `profile_networking_enum` (
     `network_type` tinyint unsigned NOT NULL,
     `name` varchar(30) NOT NULL,
     `icon` varchar(50) NOT NULL COMMENT 'icon filename',
-    `filter` enum('email','web','none') NOT NULL DEFAULT 'none' COMMENT 'filter type for addresses',
+    `filter` enum('email','web','number','none') NOT NULL DEFAULT 'none' COMMENT 'filter type for addresses',
+    `link` varchar(255) NOT NULL COMMENT 'string used to forge an URL linking to the the profile page',
     PRIMARY KEY (`network_type`)
 ) CHARSET=utf8 COMMENT='types of networking addresses';
 
 CREATE TABLE IF NOT EXISTS `profile_networking` (
-    `uid` smallint unsigned NOT NULL COMMENT 'user id',
+    `uid` int NOT NULL COMMENT 'user id',
     `nwid` tinyint unsigned NOT NULL COMMENT 'number of the address for the user',
     `network_type` tinyint unsigned NOT NULL,
     `address` varchar(255) NOT NULL,