init commit

This commit is contained in:
2025-02-23 20:52:25 +01:00
parent 5b272d6536
commit 9971cd719b
1719 changed files with 281982 additions and 2 deletions

View File

@ -0,0 +1,46 @@
--
-- Identity switch RoundCube Bundle
--
-- @copyright (c) 2024 Forian Daeumling, Germany. All right reserved
-- @license https://github.com/toteph42/identity_switch/blob/master/LICENSE
--
-- Created with phpmyadmin
INSERT INTO identity_switch(
`id`,
`user_id`,
`iid`,
`label`,
`flags`,
`imap_user`,
`imap_pwd`,
`imap_host`,
`imap_port`,
`imap_delim`,
`smtp_host`,
`smtp_port`,
`drafts`,
`sent`,
`junk`,
`trash`
)
SELECT
`id`,
`user_id`,
`iid`,
`label`,
`flags`,
`username`,
`password`,
`imap_host`,
`imap_port`,
`imap_delimiter`,
`smtp_host`,
`smtp_port`,
`drafts_mbox`,
`sent_mbox`,
`junk_mbox`,
`trash_mbox`
FROM
ident_switch;
DROP TABLE IF EXISTS ident_switch;

View File

@ -0,0 +1,42 @@
--
-- Identity switch RoundCube Bundle
--
-- @copyright (c) 2024 Forian Daeumling, Germany. All right reserved
-- @license https://github.com/toteph42/identity_switch/blob/master/LICENSE
--
-- Created with phpmyadmin
CREATE TABLE IF NOT EXISTS `identity_switch`(
`id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`user_id` INT(10) UNSIGNED NOT NULL,
`iid` INT(10) UNSIGNED NOT NULL,
`label` VARCHAR(32) NOT NULL,
`flags` INT NOT NULL DEFAULT 0,
`imap_user` VARCHAR(64),
`imap_pwd` VARCHAR(128),
`imap_host` VARCHAR(64),
`imap_port` SMALLINT DEFAULT NULL,
`imap_delim` CHAR(1),
`newmail_check` SMALLINT DEFAULT 300,
`notify_timeout` SMALLINT DEFAULT 10,
`smtp_host` VARCHAR(64),
`smtp_port` SMALLINT DEFAULT NULL,
`drafts` VARCHAR(64) DEFAULT '',
`sent` VARCHAR(64) DEFAULT '',
`junk` VARCHAR(64) DEFAULT '',
`trash` VARCHAR(64) DEFAULT '',
UNIQUE `user_id_label`(`user_id`, `label`),
CONSTRAINT `fk_identity_user_id`
FOREIGN KEY(`user_id`)
REFERENCES `users`(`user_id`)
ON DELETE CASCADE
ON UPDATE CASCADE,
CONSTRAINT `fk_identity_identity_id`
FOREIGN KEY(`iid`)
REFERENCES `identities`(`identity_id`)
ON DELETE CASCADE
ON UPDATE CASCADE,
PRIMARY KEY(`id`),
INDEX `IX_identity_switch_user_id`(`user_id`),
INDEX `IX_identity_switch_iid`(`iid`)
);

View File

@ -0,0 +1,12 @@
--
-- Identity switch RoundCube Bundle
--
-- @copyright (c) 2024 Forian Daeumling, Germany. All right reserved
-- @license https://github.com/toteph42/identity_switch/blob/master/LICENSE
--
-- Created with phpmyadmin
DROP TABLE IF EXISTS `identity_switch`;
RENAME TABLE
`identy_switch` TO `identity_switch`;

View File

@ -0,0 +1,35 @@
--
-- Identity switch RoundCube Bundle
--
-- @copyright (c) 2024 Forian Daeumling, Germany. All right reserved
-- @license https://github.com/toteph42/identity_switch/blob/master/LICENSE
--
-- Created with: https://sqliteonline.com/
CREATE TABLE IF NOT EXISTS identity_switch(
id SERIAL PRIMARY KEY,
user_id INTEGER NOT NULL
REFERENCES users(user_id)
ON DELETE CASCADE ON UPDATE CASCADE,
iid INTEGER NOT NULL
REFERENCES identities(identity_id)
ON DELETE CASCADE ON UPDATE CASCADE UNIQUE,
label VARCHAR(32),
flags INTEGER NOT NULL DEFAULT 0,
imap_user VARCHAR(64),
imap_pwd VARCHAR(128),
imap_host VARCHAR(64),
imap_port SMALLINT DEFAULT 0,
imap_delim CHAR(1),
newmail_check SMALLINT DEFAULT 300,
notify_timeout SMALLINT DEFAULT 10,
smtp_host VARCHAR(64),
smtp_port SMALLINT DEFAULT 0,
drafts VARCHAR(64) DEFAULT '',
sent VARCHAR(64) DEFAULT '',
junk VARCHAR(64) DEFAULT '',
trash VARCHAR(64) DEFAULT '',
UNIQUE (user_id, label)
);
CREATE INDEX IX_identity_switch_user_id ON identity_switch(user_id);

View File

@ -0,0 +1,12 @@
--
-- Identity switch RoundCube Bundle
--
-- @copyright (c) 2024 Forian Daeumling, Germany. All right reserved
-- @license https://github.com/toteph42/identity_switch/blob/master/LICENSE
--
-- Created with: https://sqliteonline.com/
DROP TABLE IF EXISTS identity_switch;
ALTER TABLE
identy_switch
RENAME TO identity_switch;

View File

@ -0,0 +1,36 @@
--
-- Identity switch RoundCube Bundle
--
-- @copyright (c) 2024 Forian Daeumling, Germany. All right reserved
-- @license https://github.com/toteph42/identity_switch/blob/master/LICENSE
--
-- Created with: https://sqliteonline.com/
CREATE TABLE IF NOT EXISTS `identity_switch`(
`id` INTEGER NOT NULL ,
`user_id` INTEGER NOT NULL
REFERENCES users(user_id)
ON DELETE CASCADE ON UPDATE CASCADE,
`iid` INTEGER NOT NULL
REFERENCES identities(identity_id)
ON DELETE CASCADE ON UPDATE CASCADE UNIQUE,
`label` TEXT,
`flags` INT NOT NULL DEFAULT 0,
`imap_user` TEXT,
`imap_pwd` TEXT,
`imap_host` TEXT,
`imap_port` SMALLINT DEFAULT 0,
`imap_delim` CHAR(1),
`newmail_check` SMALLINT DEFAULT 300,
`notify_timeout` SMALLINT DEFAULT 10,
`smtp_host` TEXT,
`smtp_port` SMALLINT DEFAULT 0,
`drafts` TEXT DEFAULT '',
`sent` TEXT DEFAULT '',
`junk` TEXT DEFAULT '',
`trash` TEXT DEFAULT '',
UNIQUE (user_id, label)
);
CREATE INDEX IX_identity_switch_user_id ON identity_switch(user_id);
CREATE INDEX IX_identity_switch_iid on identity_switch(iid);

View File

@ -0,0 +1,12 @@
--
-- Identity switch RoundCube Bundle
--
-- @copyright (c) 2024 Forian Daeumling, Germany. All right reserved
-- @license https://github.com/toteph42/identity_switch/blob/master/LICENSE
--
-- Created with: https://sqliteonline.com/
DROP TABLE IF EXISTS `identity_switch`;
ALTER TABLE
`identy_switch` RENAME TO `identity_switch`;