Lines 4576-4581
CREATE TABLE advanced_editor_macros (
Link Here
|
4576 |
CONSTRAINT borrower_macro_fk FOREIGN KEY ( borrowernumber ) REFERENCES borrowers ( borrowernumber ) ON UPDATE CASCADE ON DELETE CASCADE |
4576 |
CONSTRAINT borrower_macro_fk FOREIGN KEY ( borrowernumber ) REFERENCES borrowers ( borrowernumber ) ON UPDATE CASCADE ON DELETE CASCADE |
4577 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
4577 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
4578 |
|
4578 |
|
|
|
4579 |
-- |
4580 |
-- Table structure for table smtp_servers |
4581 |
-- |
4582 |
|
4583 |
DROP TABLE IF EXISTS `smtp_servers`; |
4584 |
CREATE TABLE `smtp_servers` ( |
4585 |
`id` INT(11) NOT NULL AUTO_INCREMENT, |
4586 |
-- Unique ID of the server |
4587 |
`name` VARCHAR(80) NOT NULL, |
4588 |
-- Name of the SMTP server |
4589 |
`host` VARCHAR(80) NOT NULL DEFAULT 'localhost', |
4590 |
-- FQDN for the SMTP server |
4591 |
`port` INT(11) NOT NULL DEFAULT 25, |
4592 |
-- TCP port number |
4593 |
`timeout` INT(11) NOT NULL DEFAULT 120, |
4594 |
-- Maximum time in secs to wait for server |
4595 |
`ssl_mode` ENUM('disabled', 'ssl', 'starttls') NOT NULL, |
4596 |
-- If STARTTLS needs to be issued |
4597 |
`user_name` VARCHAR(80) NULL DEFAULT NULL, |
4598 |
-- The username to use for auth; optional |
4599 |
`password` VARCHAR(80) NULL DEFAULT NULL, |
4600 |
-- The password to use for auth; required if username is provided |
4601 |
`debug` TINYINT(1) NOT NULL DEFAULT 0, |
4602 |
PRIMARY KEY (`id`), |
4603 |
KEY `host_idx` (`host`) |
4604 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
4605 |
|
4606 |
-- |
4607 |
-- Table structure for table library_smtp_servers |
4608 |
-- |
4609 |
|
4610 |
DROP TABLE IF EXISTS `library_smtp_servers`; |
4611 |
CREATE TABLE `library_smtp_servers` ( |
4612 |
`id` INT(11) NOT NULL AUTO_INCREMENT, |
4613 |
-- Unique ID of the library<->SMTP server link |
4614 |
`library_id` VARCHAR(10) NOT NULL, |
4615 |
-- Internal identifier for the library |
4616 |
`smtp_server_id` INT(11) NOT NULL, |
4617 |
-- Internal identifier for the SMTP server |
4618 |
PRIMARY KEY (`id`), |
4619 |
UNIQUE KEY `library_id_idx` (`library_id`), |
4620 |
KEY `smtp_server_id_idx` (`smtp_server_id`), |
4621 |
CONSTRAINT `library_id_fk` FOREIGN KEY (`library_id`) REFERENCES `branches` (`branchcode`) ON DELETE CASCADE ON UPDATE CASCADE, |
4622 |
CONSTRAINT `smtp_server_id_fk` FOREIGN KEY (`smtp_server_id`) REFERENCES `smtp_servers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE |
4623 |
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci; |
4624 |
|
4579 |
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
4625 |
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
4580 |
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
4626 |
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
4581 |
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; |
4627 |
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; |
4582 |
- |
|
|