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