Last active
January 8, 2018 15:17
-
-
Save heathdutton/46fc4514d8372cdda26b61cc0fe6a0cd to your computer and use it in GitHub Desktop.
Initial database for Mautic-EB Multisite. To be imported into a DB named mautic_eb_multi within the same RDS as Mautic. Note: This is just a rough draft!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ************************************************************ | |
# Database: mautic_eb_multi | |
# ************************************************************ | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | |
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | |
/*!40101 SET NAMES utf8 */; | |
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; | |
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; | |
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; | |
# Dump of table hosts | |
# ------------------------------------------------------------ | |
DROP TABLE IF EXISTS `hosts`; | |
CREATE TABLE `hosts` ( | |
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, | |
`site_id` int(11) DEFAULT NULL COMMENT 'The "site" to which this hostname belongs.', | |
`host` varchar(253) NOT NULL DEFAULT '' COMMENT 'Unique, fully qualified hostname (including subdomain) in lowercase wihtout spaces.', | |
PRIMARY KEY (`id`), | |
UNIQUE KEY `host` (`host`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
# Dump of table sites | |
# ------------------------------------------------------------ | |
DROP TABLE IF EXISTS `sites`; | |
CREATE TABLE `sites` ( | |
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, | |
`parameters` mediumtext COMMENT 'JSON Array to be merged overriding the default paramters.', | |
`status` int(1) unsigned NOT NULL DEFAULT '0' COMMENT '0 = waiting for install, 1 = creating storage, 2 = creating database, 3 = running, 4 = halted, 5 = waiting to resume, 6 = waiting for decommission, 7 = decommission', | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | |
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | |
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | |
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | |
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | |
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | |
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment