mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-09-10 23:24:15 +08:00
DB Schema small changes
This commit is contained in:
parent
b3955cd53a
commit
e118f5a458
2 changed files with 16 additions and 16 deletions
|
@ -369,13 +369,13 @@ abstract class PdoAbstract
|
||||||
{
|
{
|
||||||
$aQ[] = 'CREATE TABLE IF NOT EXISTS rainloop_system (
|
$aQ[] = 'CREATE TABLE IF NOT EXISTS rainloop_system (
|
||||||
sys_name varchar(50) NOT NULL,
|
sys_name varchar(50) NOT NULL,
|
||||||
value_int int(11) UNSIGNED NOT NULL DEFAULT \'0\',
|
value_int int UNSIGNED NOT NULL DEFAULT 0,
|
||||||
value_str varchar(128) NOT NULL DEFAULT \'\',
|
value_str varchar(128) NOT NULL DEFAULT \'\',
|
||||||
INDEX `sys_name_index` (`sys_name`)
|
INDEX `sys_name_index` (`sys_name`)
|
||||||
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */;';
|
) /*!40000 ENGINE=INNODB */ /*!40101 CHARACTER SET utf8 COLLATE utf8_general_ci */;';
|
||||||
|
|
||||||
$aQ[] = 'CREATE TABLE IF NOT EXISTS rainloop_users (
|
$aQ[] = 'CREATE TABLE IF NOT EXISTS rainloop_users (
|
||||||
id_user int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
|
id_user int UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||||
rl_email varchar(128) NOT NULL DEFAULT \'\',
|
rl_email varchar(128) NOT NULL DEFAULT \'\',
|
||||||
PRIMARY KEY(`id_user`),
|
PRIMARY KEY(`id_user`),
|
||||||
INDEX `rl_email_index` (`rl_email`)
|
INDEX `rl_email_index` (`rl_email`)
|
||||||
|
|
|
@ -790,13 +790,13 @@ class PdoPersonalAddressBook
|
||||||
// -- rainloop_pab_contacts --
|
// -- rainloop_pab_contacts --
|
||||||
'CREATE TABLE IF NOT EXISTS rainloop_pab_contacts (
|
'CREATE TABLE IF NOT EXISTS rainloop_pab_contacts (
|
||||||
|
|
||||||
id_contact int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
|
id_contact bigint UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||||
id_user int(11) UNSIGNED NOT NULL,
|
id_user int UNSIGNED NOT NULL,
|
||||||
scope_type int(4) UNSIGNED NOT NULL DEFAULT 0,
|
scope_type tinyint UNSIGNED NOT NULL DEFAULT 0,
|
||||||
display_name varchar(255) NOT NULL DEFAULT \'\',
|
display_name varchar(255) NOT NULL DEFAULT \'\',
|
||||||
display_email varchar(255) NOT NULL DEFAULT \'\',
|
display_email varchar(255) NOT NULL DEFAULT \'\',
|
||||||
display varchar(255) NOT NULL DEFAULT \'\',
|
display varchar(255) NOT NULL DEFAULT \'\',
|
||||||
changed int(11) UNSIGNED NOT NULL DEFAULT 0,
|
changed int UNSIGNED NOT NULL DEFAULT 0,
|
||||||
|
|
||||||
PRIMARY KEY(id_contact),
|
PRIMARY KEY(id_contact),
|
||||||
INDEX id_user_scope_type_index (id_user, scope_type)
|
INDEX id_user_scope_type_index (id_user, scope_type)
|
||||||
|
@ -806,15 +806,15 @@ class PdoPersonalAddressBook
|
||||||
// -- rainloop_pab_properties --
|
// -- rainloop_pab_properties --
|
||||||
'CREATE TABLE IF NOT EXISTS rainloop_pab_properties (
|
'CREATE TABLE IF NOT EXISTS rainloop_pab_properties (
|
||||||
|
|
||||||
id_prop int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
|
id_prop bigint UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||||
id_contact int(11) UNSIGNED NOT NULL,
|
id_contact bigint UNSIGNED NOT NULL,
|
||||||
id_user int(11) UNSIGNED NOT NULL,
|
id_user int UNSIGNED NOT NULL,
|
||||||
scope_type int(4) UNSIGNED NOT NULL DEFAULT 0,
|
scope_type tinyint UNSIGNED NOT NULL DEFAULT 0,
|
||||||
prop_type int(11) UNSIGNED NOT NULL,
|
prop_type tinyint UNSIGNED NOT NULL,
|
||||||
prop_type_custom varchar(50) /*!40101 CHARACTER SET ascii COLLATE ascii_general_ci */ NOT NULL DEFAULT \'\',
|
prop_type_custom varchar(50) /*!40101 CHARACTER SET ascii COLLATE ascii_general_ci */ NOT NULL DEFAULT \'\',
|
||||||
prop_value varchar(255) NOT NULL DEFAULT \'\',
|
prop_value varchar(255) NOT NULL DEFAULT \'\',
|
||||||
prop_value_custom varchar(255) NOT NULL DEFAULT \'\',
|
prop_value_custom varchar(255) NOT NULL DEFAULT \'\',
|
||||||
prop_frec int(11) UNSIGNED NOT NULL DEFAULT 0,
|
prop_frec int UNSIGNED NOT NULL DEFAULT 0,
|
||||||
|
|
||||||
PRIMARY KEY(id_prop),
|
PRIMARY KEY(id_prop),
|
||||||
INDEX id_user_index (id_user),
|
INDEX id_user_index (id_user),
|
||||||
|
@ -825,8 +825,8 @@ class PdoPersonalAddressBook
|
||||||
// -- rainloop_pab_tags --
|
// -- rainloop_pab_tags --
|
||||||
'CREATE TABLE IF NOT EXISTS rainloop_pab_tags (
|
'CREATE TABLE IF NOT EXISTS rainloop_pab_tags (
|
||||||
|
|
||||||
id_tag int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
|
id_tag int UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||||
id_user int(11) UNSIGNED NOT NULL,
|
id_user int UNSIGNED NOT NULL,
|
||||||
tag_name varchar(255) NOT NULL,
|
tag_name varchar(255) NOT NULL,
|
||||||
|
|
||||||
PRIMARY KEY(id_tag),
|
PRIMARY KEY(id_tag),
|
||||||
|
@ -838,8 +838,8 @@ class PdoPersonalAddressBook
|
||||||
// -- rainloop_pab_tags_contacts --
|
// -- rainloop_pab_tags_contacts --
|
||||||
'CREATE TABLE IF NOT EXISTS rainloop_pab_tags_contacts (
|
'CREATE TABLE IF NOT EXISTS rainloop_pab_tags_contacts (
|
||||||
|
|
||||||
id_tag int(11) UNSIGNED NOT NULL,
|
id_tag int UNSIGNED NOT NULL,
|
||||||
id_contact int(11) UNSIGNED NOT NULL,
|
id_contact bigint UNSIGNED NOT NULL,
|
||||||
|
|
||||||
INDEX id_tag_index (id_tag),
|
INDEX id_tag_index (id_tag),
|
||||||
INDEX id_contact_index (id_contact)
|
INDEX id_contact_index (id_contact)
|
||||||
|
|
Loading…
Add table
Reference in a new issue