From 3a42e074b2f3da211f3262db7bc54690c0886ab3 Mon Sep 17 00:00:00 2001 From: Barry O'Donovan Date: Sun, 14 Nov 2021 11:19:28 +0000 Subject: [PATCH] Update ci_test_db.sql --- data/ci/ci_test_db.sql | 1462 ++++++++++++++++++++-------------------- 1 file changed, 732 insertions(+), 730 deletions(-) diff --git a/data/ci/ci_test_db.sql b/data/ci/ci_test_db.sql index 968f5dca2..96fa35dc4 100644 --- a/data/ci/ci_test_db.sql +++ b/data/ci/ci_test_db.sql @@ -1,13 +1,13 @@ --- MySQL dump 10.13 Distrib 5.7.34, for osx10.16 (x86_64) +-- MySQL dump 10.13 Distrib 8.0.27, for macos11.6 (x86_64) -- --- Host: localhost Database: ixp_ci +-- Host: localhost Database: myapp_test -- ------------------------------------------------------ --- Server version 5.7.34 +-- Server version 8.0.27 /*!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 */; +/*!50503 SET NAMES utf8mb4 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; @@ -21,23 +21,23 @@ DROP TABLE IF EXISTS `api_keys`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `api_keys` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `user_id` int(11) NOT NULL, - `apiKey` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `id` bigint NOT NULL AUTO_INCREMENT, + `user_id` int NOT NULL, + `apiKey` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `expires` datetime DEFAULT NULL, - `allowedIPs` mediumtext COLLATE utf8_unicode_ci, + `allowedIPs` mediumtext CHARACTER SET utf8 COLLATE utf8_unicode_ci, `lastseenAt` datetime DEFAULT NULL, - `lastseenFrom` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `description` longtext COLLATE utf8_unicode_ci, + `lastseenFrom` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `description` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `UNIQ_9579321F800A1141` (`apiKey`), KEY `IDX_9579321FA76ED395` (`user_id`), CONSTRAINT `FK_9579321FA76ED395` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE -) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -56,13 +56,13 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `atlas_measurements`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `atlas_measurements` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `run_id` int(11) NOT NULL, - `cust_source` int(11) DEFAULT NULL, - `cust_dest` int(11) DEFAULT NULL, - `atlas_id` int(11) DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `run_id` int NOT NULL, + `cust_source` int DEFAULT NULL, + `cust_dest` int DEFAULT NULL, + `atlas_id` int DEFAULT NULL, `atlas_create` datetime DEFAULT NULL, `atlas_start` datetime DEFAULT NULL, `atlas_stop` datetime DEFAULT NULL, @@ -96,18 +96,18 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `atlas_probes`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `atlas_probes` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `cust_id` int(11) NOT NULL, + `id` bigint NOT NULL AUTO_INCREMENT, + `cust_id` int NOT NULL, `address_v4` varchar(15) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `address_v6` varchar(39) COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `v4_enabled` tinyint(4) DEFAULT NULL, - `v6_enabled` tinyint(4) DEFAULT NULL, - `asn` int(11) DEFAULT NULL, - `atlas_id` int(11) NOT NULL, - `is_anchor` tinyint(4) NOT NULL, - `is_public` tinyint(4) NOT NULL, + `v4_enabled` tinyint DEFAULT NULL, + `v6_enabled` tinyint DEFAULT NULL, + `asn` int DEFAULT NULL, + `atlas_id` int NOT NULL, + `is_anchor` tinyint NOT NULL, + `is_public` tinyint NOT NULL, `last_connected` datetime DEFAULT NULL, `status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `api_data` json DEFAULT NULL, @@ -134,10 +134,10 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `atlas_results`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `atlas_results` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `measurement_id` int(11) DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `measurement_id` int DEFAULT NULL, `routing` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `path` longtext COLLATE utf8mb4_unicode_ci, `created_at` timestamp NULL DEFAULT NULL, @@ -163,11 +163,11 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `atlas_runs`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `atlas_runs` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `vlan_id` int(11) DEFAULT NULL, - `protocol` int(11) DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `vlan_id` int DEFAULT NULL, + `protocol` int DEFAULT NULL, `scheduled_at` datetime DEFAULT NULL, `started_at` datetime DEFAULT NULL, `completed_at` datetime DEFAULT NULL, @@ -194,20 +194,20 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `bgp_sessions`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `bgp_sessions` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `srcipaddressid` int(11) NOT NULL, - `protocol` int(11) NOT NULL, - `dstipaddressid` int(11) NOT NULL, - `packetcount` int(11) NOT NULL DEFAULT '0', + `id` int NOT NULL AUTO_INCREMENT, + `srcipaddressid` int NOT NULL, + `protocol` int NOT NULL, + `dstipaddressid` int NOT NULL, + `packetcount` int NOT NULL DEFAULT '0', `last_seen` datetime NOT NULL, - `source` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL, + `source` varchar(40) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `src_protocol_dst` (`srcipaddressid`,`protocol`,`dstipaddressid`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -225,19 +225,19 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `bgpsessiondata`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `bgpsessiondata` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `srcipaddressid` int(11) DEFAULT NULL, - `dstipaddressid` int(11) DEFAULT NULL, - `protocol` int(11) DEFAULT NULL, - `vlan` int(11) DEFAULT NULL, - `packetcount` int(11) DEFAULT '0', + `id` int NOT NULL AUTO_INCREMENT, + `srcipaddressid` int DEFAULT NULL, + `dstipaddressid` int DEFAULT NULL, + `protocol` int DEFAULT NULL, + `vlan` int DEFAULT NULL, + `packetcount` int DEFAULT '0', `timestamp` datetime DEFAULT NULL, - `source` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL, + `source` varchar(40) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_timestamp` (`timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -255,23 +255,23 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `cabinet`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `cabinet` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `locationid` int(11) DEFAULT NULL, - `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `colocation` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `height` int(11) DEFAULT NULL, - `type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `notes` longtext COLLATE utf8_unicode_ci, - `u_counts_from` smallint(6) DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `locationid` int DEFAULT NULL, + `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `colocation` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `height` int DEFAULT NULL, + `type` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `notes` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci, + `u_counts_from` smallint DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `UNIQ_4CED05B05E237E06` (`name`), KEY `IDX_4CED05B03530CCF` (`locationid`), CONSTRAINT `FK_4CED05B03530CCF` FOREIGN KEY (`locationid`) REFERENCES `location` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -290,28 +290,28 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `company_billing_detail`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `company_billing_detail` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `billingContactName` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `billingAddress1` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `billingAddress2` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `billingAddress3` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `billingTownCity` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `billingPostcode` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `billingCountry` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `billingEmail` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `billingTelephone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `vatNumber` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `vatRate` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `billingContactName` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `billingAddress1` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `billingAddress2` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `billingAddress3` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `billingTownCity` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `billingPostcode` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `billingCountry` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `billingEmail` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `billingTelephone` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `vatNumber` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `vatRate` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `purchaseOrderRequired` tinyint(1) NOT NULL DEFAULT '0', - `invoiceMethod` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `invoiceEmail` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `billingFrequency` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `invoiceMethod` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `invoiceEmail` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `billingFrequency` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -330,22 +330,22 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `company_registration_detail`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `company_registration_detail` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `registeredName` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `companyNumber` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `jurisdiction` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `address1` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `address2` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `address3` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `townCity` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `postcode` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `country` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `registeredName` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `companyNumber` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `jurisdiction` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `address1` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `address2` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `address3` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `townCity` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `postcode` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `country` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -364,17 +364,17 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `console_server`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `console_server` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `vendor_id` int(11) DEFAULT NULL, - `cabinet_id` int(11) DEFAULT NULL, - `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `hostname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `model` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `serialNumber` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `vendor_id` int DEFAULT NULL, + `cabinet_id` int DEFAULT NULL, + `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `hostname` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `model` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `serialNumber` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `active` tinyint(1) DEFAULT '1', - `notes` longtext COLLATE utf8_unicode_ci, + `notes` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), @@ -383,7 +383,7 @@ CREATE TABLE `console_server` ( KEY `IDX_92A53923D351EC` (`cabinet_id`), CONSTRAINT `FK_92A53923D351EC` FOREIGN KEY (`cabinet_id`) REFERENCES `cabinet` (`id`), CONSTRAINT `FK_92A53923F603EE73` FOREIGN KEY (`vendor_id`) REFERENCES `vendor` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -401,19 +401,19 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `consoleserverconnection`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `consoleserverconnection` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `custid` int(11) DEFAULT NULL, - `description` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `port` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `speed` int(11) DEFAULT NULL, - `parity` int(11) DEFAULT NULL, - `stopbits` int(11) DEFAULT NULL, - `flowcontrol` int(11) DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `custid` int DEFAULT NULL, + `description` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `port` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `speed` int DEFAULT NULL, + `parity` int DEFAULT NULL, + `stopbits` int DEFAULT NULL, + `flowcontrol` int DEFAULT NULL, `autobaud` tinyint(1) DEFAULT NULL, - `notes` longtext COLLATE utf8_unicode_ci, - `console_server_id` int(11) DEFAULT NULL, + `notes` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci, + `console_server_id` int DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), @@ -422,7 +422,7 @@ CREATE TABLE `consoleserverconnection` ( KEY `IDX_530316DCF472E7C6` (`console_server_id`), CONSTRAINT `FK_530316DCDA0209B9` FOREIGN KEY (`custid`) REFERENCES `cust` (`id`) ON DELETE CASCADE, CONSTRAINT `FK_530316DCF472E7C6` FOREIGN KEY (`console_server_id`) REFERENCES `console_server` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -440,26 +440,26 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `contact`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `contact` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `custid` int(11) DEFAULT NULL, - `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `position` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, - `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `phone` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, - `mobile` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `custid` int DEFAULT NULL, + `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `position` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `email` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `phone` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `mobile` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `facilityaccess` tinyint(1) NOT NULL DEFAULT '0', `mayauthorize` tinyint(1) NOT NULL DEFAULT '0', - `notes` longtext COLLATE utf8_unicode_ci, + `notes` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci, `updated_at` datetime DEFAULT NULL, - `lastupdatedby` int(11) DEFAULT NULL, - `creator` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL, + `lastupdatedby` int DEFAULT NULL, + `creator` varchar(32) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `IDX_4C62E638DA0209B9` (`custid`), CONSTRAINT `FK_4C62E638DA0209B9` FOREIGN KEY (`custid`) REFERENCES `cust` (`id`) ON DELETE CASCADE -) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -478,19 +478,19 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `contact_group`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `contact_group` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `name` varchar(20) COLLATE utf8_unicode_ci NOT NULL, - `description` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `type` varchar(20) COLLATE utf8_unicode_ci NOT NULL, + `id` bigint NOT NULL AUTO_INCREMENT, + `name` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `description` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `type` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `active` tinyint(1) NOT NULL DEFAULT '1', - `limited_to` int(11) NOT NULL DEFAULT '0', + `limited_to` int NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `UNIQ_40EA54CA5E237E06` (`name`) -) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -509,10 +509,10 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `contact_to_group`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `contact_to_group` ( - `contact_id` int(11) NOT NULL, - `contact_group_id` bigint(20) NOT NULL, + `contact_id` int NOT NULL, + `contact_group_id` bigint NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`contact_id`,`contact_group_id`), @@ -520,7 +520,7 @@ CREATE TABLE `contact_to_group` ( KEY `IDX_FCD9E962647145D0` (`contact_group_id`), CONSTRAINT `FK_FCD9E962647145D0` FOREIGN KEY (`contact_group_id`) REFERENCES `contact_group` (`id`), CONSTRAINT `FK_FCD9E962E7A1254A` FOREIGN KEY (`contact_id`) REFERENCES `contact` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -538,23 +538,23 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `corebundles`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `corebundles` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `description` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `type` int(11) NOT NULL, - `graph_title` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `description` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `type` int NOT NULL, + `graph_title` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `bfd` tinyint(1) NOT NULL DEFAULT '0', - `ipv4_subnet` varchar(18) COLLATE utf8_unicode_ci DEFAULT NULL, - `ipv6_subnet` varchar(43) COLLATE utf8_unicode_ci DEFAULT NULL, + `ipv4_subnet` varchar(18) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `ipv6_subnet` varchar(43) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `stp` tinyint(1) NOT NULL DEFAULT '0', - `cost` int(10) unsigned DEFAULT NULL, - `preference` int(10) unsigned DEFAULT NULL, + `cost` int unsigned DEFAULT NULL, + `preference` int unsigned DEFAULT NULL, `enabled` tinyint(1) NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -573,16 +573,16 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `coreinterfaces`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `coreinterfaces` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `physical_interface_id` int(11) DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `physical_interface_id` int DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `UNIQ_E1A404B7FF664B20` (`physical_interface_id`), CONSTRAINT `FK_E1A404B7FF664B20` FOREIGN KEY (`physical_interface_id`) REFERENCES `physicalinterface` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -601,15 +601,15 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `corelinks`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `corelinks` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `core_interface_sidea_id` int(11) NOT NULL, - `core_interface_sideb_id` int(11) NOT NULL, - `core_bundle_id` int(11) NOT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `core_interface_sidea_id` int NOT NULL, + `core_interface_sideb_id` int NOT NULL, + `core_bundle_id` int NOT NULL, `bfd` tinyint(1) NOT NULL DEFAULT '0', - `ipv4_subnet` varchar(18) COLLATE utf8_unicode_ci DEFAULT NULL, - `ipv6_subnet` varchar(43) COLLATE utf8_unicode_ci DEFAULT NULL, + `ipv4_subnet` varchar(18) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `ipv6_subnet` varchar(43) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `enabled` tinyint(1) NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, @@ -620,7 +620,7 @@ CREATE TABLE `corelinks` ( CONSTRAINT `FK_BE421236AC0E2A28` FOREIGN KEY (`core_interface_sideb_id`) REFERENCES `coreinterfaces` (`id`), CONSTRAINT `FK_BE421236BE9AE9F7` FOREIGN KEY (`core_bundle_id`) REFERENCES `corebundles` (`id`), CONSTRAINT `FK_BE421236BEBB85C6` FOREIGN KEY (`core_interface_sidea_id`) REFERENCES `coreinterfaces` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -639,37 +639,37 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `cust`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `cust` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `irrdb` int(11) DEFAULT NULL, - `company_registered_detail_id` int(11) DEFAULT NULL, - `company_billing_details_id` int(11) DEFAULT NULL, - `reseller` int(11) DEFAULT NULL, - `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `type` int(11) DEFAULT NULL, - `shortname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `abbreviatedName` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL, - `autsys` int(11) DEFAULT NULL, - `maxprefixes` int(11) DEFAULT NULL, - `peeringemail` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `nocphone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `noc24hphone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `nocfax` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `nocemail` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `nochours` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `nocwww` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `peeringmacro` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `peeringmacrov6` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `peeringpolicy` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `corpwww` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `irrdb` int DEFAULT NULL, + `company_registered_detail_id` int DEFAULT NULL, + `company_billing_details_id` int DEFAULT NULL, + `reseller` int DEFAULT NULL, + `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `type` int DEFAULT NULL, + `shortname` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `abbreviatedName` varchar(30) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `autsys` int DEFAULT NULL, + `maxprefixes` int DEFAULT NULL, + `peeringemail` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `nocphone` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `noc24hphone` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `nocfax` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `nocemail` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `nochours` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `nocwww` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `peeringmacro` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `peeringmacrov6` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `peeringpolicy` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `corpwww` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `datejoin` date DEFAULT NULL, `dateleave` date DEFAULT NULL, - `status` smallint(6) DEFAULT NULL, + `status` smallint DEFAULT NULL, `activepeeringmatrix` tinyint(1) DEFAULT NULL, - `lastupdatedby` int(11) DEFAULT NULL, - `creator` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `MD5Support` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'UNKNOWN', + `lastupdatedby` int DEFAULT NULL, + `creator` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `MD5Support` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT 'UNKNOWN', `isReseller` tinyint(1) NOT NULL DEFAULT '0', `in_manrs` tinyint(1) NOT NULL DEFAULT '0', `in_peeringdb` tinyint(1) NOT NULL DEFAULT '0', @@ -686,7 +686,7 @@ CREATE TABLE `cust` ( CONSTRAINT `FK_997B25A666E98DF` FOREIGN KEY (`irrdb`) REFERENCES `irrdbconfig` (`id`), CONSTRAINT `FK_997B25A84478F0C` FOREIGN KEY (`company_billing_details_id`) REFERENCES `company_billing_detail` (`id`), CONSTRAINT `FK_997B25A98386213` FOREIGN KEY (`company_registered_detail_id`) REFERENCES `company_registration_detail` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -705,19 +705,19 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `cust_notes`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `cust_notes` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `customer_id` int(11) NOT NULL, + `id` bigint NOT NULL AUTO_INCREMENT, + `customer_id` int NOT NULL, `private` tinyint(1) NOT NULL DEFAULT '1', - `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `note` longtext COLLATE utf8_unicode_ci NOT NULL, + `title` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `note` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `IDX_6377D8679395C3F3` (`customer_id`), CONSTRAINT `FK_6377D8679395C3F3` FOREIGN KEY (`customer_id`) REFERENCES `cust` (`id`) ON DELETE CASCADE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -735,18 +735,18 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `cust_tag`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `cust_tag` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `tag` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `display_as` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `description` longtext COLLATE utf8_unicode_ci, + `id` int NOT NULL AUTO_INCREMENT, + `tag` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `display_as` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `description` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci, `internal_only` tinyint(1) NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `UNIQ_6B54CFB8389B783` (`tag`) -) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -765,10 +765,10 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `cust_to_cust_tag`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `cust_to_cust_tag` ( - `customer_tag_id` int(11) NOT NULL, - `customer_id` int(11) NOT NULL, + `customer_tag_id` int NOT NULL, + `customer_id` int NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`customer_tag_id`,`customer_id`), @@ -776,7 +776,7 @@ CREATE TABLE `cust_to_cust_tag` ( KEY `IDX_A6CFB30C9395C3F3` (`customer_id`), CONSTRAINT `FK_A6CFB30C9395C3F3` FOREIGN KEY (`customer_id`) REFERENCES `cust` (`id`), CONSTRAINT `FK_A6CFB30CB17BF40` FOREIGN KEY (`customer_tag_id`) REFERENCES `cust_tag` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -795,13 +795,13 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `custkit`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `custkit` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `custid` int(11) DEFAULT NULL, - `cabinetid` int(11) DEFAULT NULL, - `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `descr` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `custid` int DEFAULT NULL, + `cabinetid` int DEFAULT NULL, + `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `descr` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), @@ -809,7 +809,7 @@ CREATE TABLE `custkit` ( KEY `IDX_8127F9AA2B96718A` (`cabinetid`), CONSTRAINT `FK_8127F9AA2B96718A` FOREIGN KEY (`cabinetid`) REFERENCES `cabinet` (`id`), CONSTRAINT `FK_8127F9AADA0209B9` FOREIGN KEY (`custid`) REFERENCES `cust` (`id`) ON DELETE CASCADE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -827,16 +827,16 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `customer_to_users`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `customer_to_users` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `customer_id` int(11) NOT NULL, - `user_id` int(11) NOT NULL, - `privs` int(11) NOT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `customer_id` int NOT NULL, + `user_id` int NOT NULL, + `privs` int NOT NULL, `last_login_date` datetime DEFAULT NULL, - `last_login_from` tinytext COLLATE utf8mb4_unicode_ci, + `last_login_from` tinytext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `extra_attributes` json DEFAULT NULL COMMENT '(DC2Type:json)', - `last_login_via` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `last_login_via` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), @@ -864,13 +864,13 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `docstore_customer_directories`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `docstore_customer_directories` ( - `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, - `cust_id` int(11) NOT NULL, - `parent_dir_id` bigint(20) unsigned DEFAULT NULL, - `name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, - `description` text COLLATE utf8mb4_unicode_ci, + `id` bigint unsigned NOT NULL AUTO_INCREMENT, + `cust_id` int NOT NULL, + `parent_dir_id` bigint unsigned DEFAULT NULL, + `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), @@ -896,19 +896,19 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `docstore_customer_files`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `docstore_customer_files` ( - `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, - `cust_id` int(11) NOT NULL, - `docstore_customer_directory_id` bigint(20) unsigned DEFAULT NULL, - `name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, - `disk` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'docstore_customers', - `path` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `sha256` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `description` text COLLATE utf8mb4_unicode_ci, - `min_privs` smallint(6) NOT NULL, + `id` bigint unsigned NOT NULL AUTO_INCREMENT, + `cust_id` int NOT NULL, + `docstore_customer_directory_id` bigint unsigned DEFAULT NULL, + `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `disk` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'docstore_customers', + `path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `sha256` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `min_privs` smallint NOT NULL, `file_last_updated` datetime NOT NULL, - `created_by` int(11) DEFAULT NULL, + `created_by` int DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), @@ -935,12 +935,12 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `docstore_directories`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `docstore_directories` ( - `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, - `parent_dir_id` bigint(20) unsigned DEFAULT NULL, - `name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, - `description` text COLLATE utf8mb4_unicode_ci, + `id` bigint unsigned NOT NULL AUTO_INCREMENT, + `parent_dir_id` bigint unsigned DEFAULT NULL, + `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), @@ -964,18 +964,18 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `docstore_files`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `docstore_files` ( - `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, - `docstore_directory_id` bigint(20) unsigned DEFAULT NULL, - `name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, - `disk` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'docstore', - `path` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', - `sha256` varchar(64) COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `description` text COLLATE utf8mb4_unicode_ci, - `min_privs` smallint(6) NOT NULL, + `id` bigint unsigned NOT NULL AUTO_INCREMENT, + `docstore_directory_id` bigint unsigned DEFAULT NULL, + `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `disk` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'docstore', + `path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', + `sha256` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `min_privs` smallint NOT NULL, `file_last_updated` datetime NOT NULL, - `created_by` int(11) DEFAULT NULL, + `created_by` int DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), @@ -1000,11 +1000,11 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `docstore_logs`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `docstore_logs` ( - `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, - `docstore_file_id` bigint(20) unsigned NOT NULL, - `downloaded_by` int(11) DEFAULT NULL, + `id` bigint unsigned NOT NULL AUTO_INCREMENT, + `docstore_file_id` bigint unsigned NOT NULL, + `downloaded_by` int DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), @@ -1028,13 +1028,13 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `failed_jobs`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `failed_jobs` ( - `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, - `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, - `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, - `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, - `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, + `id` bigint unsigned NOT NULL AUTO_INCREMENT, + `connection` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `queue` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `payload` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `exception` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; @@ -1055,21 +1055,21 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `infrastructure`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `infrastructure` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `shortname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `shortname` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `isPrimary` tinyint(1) NOT NULL DEFAULT '0', - `peeringdb_ix_id` bigint(20) DEFAULT NULL, - `ixf_ix_id` bigint(20) DEFAULT NULL, - `country` varchar(2) COLLATE utf8_unicode_ci DEFAULT NULL, - `notes` longtext COLLATE utf8_unicode_ci, + `peeringdb_ix_id` bigint DEFAULT NULL, + `ixf_ix_id` bigint DEFAULT NULL, + `country` varchar(2) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `notes` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `unique_shortname` (`shortname`) -) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -1088,18 +1088,18 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `ipv4address`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `ipv4address` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `vlanid` int(11) DEFAULT NULL, - `address` varchar(16) COLLATE utf8_unicode_ci DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `vlanid` int DEFAULT NULL, + `address` varchar(16) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `vlan_address` (`vlanid`,`address`), KEY `IDX_A44BCBEEF48D6D0` (`vlanid`), CONSTRAINT `FK_A44BCBEEF48D6D0` FOREIGN KEY (`vlanid`) REFERENCES `vlan` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=253 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=253 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -1118,18 +1118,18 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `ipv6address`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `ipv6address` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `vlanid` int(11) DEFAULT NULL, - `address` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `vlanid` int DEFAULT NULL, + `address` varchar(40) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `vlan_address` (`vlanid`,`address`), KEY `IDX_E66ECC93F48D6D0` (`vlanid`), CONSTRAINT `FK_E66ECC93F48D6D0` FOREIGN KEY (`vlanid`) REFERENCES `vlan` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=801 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=801 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -1148,12 +1148,12 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `irrdb_asn`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `irrdb_asn` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `customer_id` int(11) NOT NULL, - `asn` int(10) unsigned NOT NULL, - `protocol` int(11) NOT NULL, + `id` bigint NOT NULL AUTO_INCREMENT, + `customer_id` int NOT NULL, + `asn` int unsigned NOT NULL, + `protocol` int NOT NULL, `first_seen` datetime DEFAULT NULL, `last_seen` datetime DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, @@ -1162,7 +1162,7 @@ CREATE TABLE `irrdb_asn` ( UNIQUE KEY `custasn` (`asn`,`protocol`,`customer_id`), KEY `IDX_87BFC5569395C3F3` (`customer_id`), CONSTRAINT `FK_87BFC5569395C3F3` FOREIGN KEY (`customer_id`) REFERENCES `cust` (`id`) ON DELETE CASCADE -) ENGINE=InnoDB AUTO_INCREMENT=105 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=105 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -1181,12 +1181,12 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `irrdb_prefix`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `irrdb_prefix` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `customer_id` int(11) NOT NULL, - `prefix` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `protocol` int(11) NOT NULL, + `id` bigint NOT NULL AUTO_INCREMENT, + `customer_id` int NOT NULL, + `prefix` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `protocol` int NOT NULL, `first_seen` datetime DEFAULT NULL, `last_seen` datetime DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, @@ -1195,7 +1195,7 @@ CREATE TABLE `irrdb_prefix` ( UNIQUE KEY `custprefix` (`prefix`,`protocol`,`customer_id`), KEY `IDX_FE73E77C9395C3F3` (`customer_id`), CONSTRAINT `FK_FE73E77C9395C3F3` FOREIGN KEY (`customer_id`) REFERENCES `cust` (`id`) ON DELETE CASCADE -) ENGINE=InnoDB AUTO_INCREMENT=649 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=649 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -1214,16 +1214,16 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `irrdbconfig`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `irrdbconfig` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `host` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `source` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `notes` longtext COLLATE utf8_unicode_ci, + `id` int NOT NULL AUTO_INCREMENT, + `host` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `source` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `notes` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -1232,7 +1232,7 @@ CREATE TABLE `irrdbconfig` ( LOCK TABLES `irrdbconfig` WRITE; /*!40000 ALTER TABLE `irrdbconfig` DISABLE KEYS */; -INSERT INTO `irrdbconfig` VALUES (1,'whois.ripe.net','RIPE','RIPE Query from RIPE Database',NULL,NULL),(2,'whois.radb.net','RADB','RADB Query from RADB Database',NULL,NULL),(3,'whois.lacnic.net','LACNIC','LACNIC Query from LACNIC Database',NULL,NULL),(4,'whois.afrinic.net','AFRINIC','AFRINIC Query from AFRINIC Database',NULL,NULL),(5,'whois.apnic.net','APNIC','APNIC Query from APNIC Database',NULL,NULL),(6,'rr.level3.net','LEVEL3','Level3 Query from Level3 Database',NULL,NULL),(7,'whois.radb.net','ARIN','ARIN Query from RADB Database',NULL,NULL),(8,'whois.radb.net','RADB,ARIN','RADB+ARIN Query from RADB Database',NULL,NULL),(9,'whois.radb.net','ALTDB','ALTDB Query from RADB Database',NULL,NULL),(10,'whois.radb.net','RADB,RIPE','RADB+RIPE Query from RADB Database',NULL,NULL),(11,'whois.radb.net','RADB,APNIC,ARIN','RADB+APNIC+ARIN Query from RADB Database',NULL,NULL),(12,'whois.radb.net','RIPE,ARIN','RIPE+ARIN Query from RADB Database',NULL,NULL),(13,'whois.radb.net','RADB,RIPE,APNIC,ARIN','',NULL,NULL); +INSERT INTO `irrdbconfig` VALUES (1,'whois.radb.net','RIPE','RIPE Query from RIPE Database',NULL,NULL),(2,'whois.radb.net','RADB','RADB Query from RADB Database',NULL,NULL),(3,'whois.radb.net','LACNIC','LACNIC Query from LACNIC Database',NULL,NULL),(4,'whois.radb.net','AFRINIC','AFRINIC Query from AFRINIC Database',NULL,NULL),(5,'whois.radb.net','APNIC','APNIC Query from APNIC Database',NULL,NULL),(6,'whois.radb.net','LEVEL3','Level3 Query from Level3 Database',NULL,NULL),(7,'whois.radb.net','ARIN','ARIN Query from RADB Database',NULL,NULL),(8,'whois.radb.net','RADB,ARIN','RADB+ARIN Query from RADB Database',NULL,NULL),(9,'whois.radb.net','ALTDB','ALTDB Query from RADB Database',NULL,NULL),(10,'whois.radb.net','RADB,RIPE','RADB+RIPE Query from RADB Database',NULL,NULL),(11,'whois.radb.net','RADB,APNIC,ARIN','RADB+APNIC+ARIN Query from RADB Database',NULL,NULL),(12,'whois.radb.net','RIPE,ARIN','RIPE+ARIN Query from RADB Database',NULL,NULL),(13,'whois.radb.net','RADB,RIPE,APNIC,ARIN','',NULL,NULL); /*!40000 ALTER TABLE `irrdbconfig` ENABLE KEYS */; UNLOCK TABLES; @@ -1242,11 +1242,11 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `l2address`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `l2address` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `vlan_interface_id` int(11) NOT NULL, - `mac` varchar(12) COLLATE utf8_unicode_ci DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `vlan_interface_id` int NOT NULL, + `mac` varchar(12) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `firstseen` datetime DEFAULT NULL, `lastseen` datetime DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, @@ -1255,7 +1255,7 @@ CREATE TABLE `l2address` ( UNIQUE KEY `mac_vlanint` (`mac`,`vlan_interface_id`), KEY `IDX_B9482E1D6AB5F82` (`vlan_interface_id`), CONSTRAINT `FK_B9482E1D6AB5F82` FOREIGN KEY (`vlan_interface_id`) REFERENCES `vlaninterface` (`id`) ON DELETE CASCADE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -1273,28 +1273,28 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `location`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `location` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `shortname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `tag` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `address` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `nocphone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `nocfax` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `nocemail` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `officephone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `officefax` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `officeemail` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `notes` longtext COLLATE utf8_unicode_ci, - `pdb_facility_id` bigint(20) DEFAULT NULL, - `city` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, - `country` varchar(2) COLLATE utf8_unicode_ci DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `shortname` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `tag` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `address` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `nocphone` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `nocfax` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `nocemail` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `officephone` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `officefax` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `officeemail` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `notes` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci, + `pdb_facility_id` bigint DEFAULT NULL, + `city` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `country` varchar(2) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `UNIQ_5E9E89CB64082763` (`shortname`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -1313,14 +1313,14 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `log`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `log` ( - `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, - `user_id` int(11) DEFAULT NULL, - `model` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, - `model_id` bigint(20) unsigned DEFAULT NULL, - `action` varchar(7) COLLATE utf8mb4_unicode_ci NOT NULL, - `message` text COLLATE utf8mb4_unicode_ci NOT NULL, + `id` bigint unsigned NOT NULL AUTO_INCREMENT, + `user_id` int DEFAULT NULL, + `model` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `model_id` bigint unsigned DEFAULT NULL, + `action` varchar(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `models` json NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, @@ -1348,21 +1348,21 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `logos`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `logos` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `customer_id` int(11) DEFAULT NULL, - `original_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `stored_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `uploaded_by` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `width` int(11) NOT NULL, - `height` int(11) NOT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `customer_id` int DEFAULT NULL, + `original_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `stored_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `uploaded_by` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `width` int NOT NULL, + `height` int NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `UNIQ_9F54004F9395C3F3` (`customer_id`), CONSTRAINT `FK_9F54004F9395C3F3` FOREIGN KEY (`customer_id`) REFERENCES `cust` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -1380,19 +1380,19 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `macaddress`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `macaddress` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `virtualinterfaceid` int(11) DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `virtualinterfaceid` int DEFAULT NULL, `firstseen` datetime DEFAULT NULL, `lastseen` datetime DEFAULT NULL, - `mac` varchar(12) COLLATE utf8_unicode_ci DEFAULT NULL, + `mac` varchar(12) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `IDX_42CD65F6BFDF15D5` (`virtualinterfaceid`), CONSTRAINT `FK_42CD65F6BFDF15D5` FOREIGN KEY (`virtualinterfaceid`) REFERENCES `virtualinterface` (`id`) ON DELETE CASCADE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -1410,13 +1410,13 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `migrations`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `migrations` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, - `batch` int(11) NOT NULL, + `id` int unsigned NOT NULL AUTO_INCREMENT, + `migration` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `batch` int NOT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -1425,7 +1425,7 @@ CREATE TABLE `migrations` ( LOCK TABLES `migrations` WRITE; /*!40000 ALTER TABLE `migrations` DISABLE KEYS */; -INSERT INTO `migrations` VALUES (1,'2014_10_12_100000_create_password_resets_table',1),(2,'2018_08_08_100000_create_telescope_entries_table',1),(3,'2019_03_25_211956_create_failed_jobs_table',1),(4,'2020_02_06_204556_create_docstore_directories',2),(5,'2020_02_06_204608_create_docstore_files',2),(6,'2020_02_06_204911_create_docstore_logs',2),(7,'2020_03_09_110945_create_docstore_customer_directories',3),(8,'2020_03_09_111505_create_docstore_customer_files',3),(9,'2020_07_21_094354_create_route_server_filters',4),(12,'2020_09_03_153723_add_timestamps',5),(13,'2020_09_18_095136_delete_ixp_table',6),(14,'2020_11_16_102415_database_fixes',7),(15,'2021_03_12_150418_create_log_table',8),(16,'2021_04_14_125742_user_pref',9),(17,'2021_04_14_101948_update_timestamps',10),(18,'2021_05_18_085721_add_note_infrastructure',11),(19,'2021_05_18_114206_update_pp_prefix_size',12); +INSERT INTO `migrations` VALUES (1,'2014_10_12_100000_create_password_resets_table',1),(2,'2018_08_08_100000_create_telescope_entries_table',1),(3,'2019_03_25_211956_create_failed_jobs_table',1),(4,'2020_02_06_204556_create_docstore_directories',2),(5,'2020_02_06_204608_create_docstore_files',2),(6,'2020_02_06_204911_create_docstore_logs',2),(7,'2020_03_09_110945_create_docstore_customer_directories',3),(8,'2020_03_09_111505_create_docstore_customer_files',3),(9,'2020_07_21_094354_create_route_server_filters',4),(12,'2020_09_03_153723_add_timestamps',5),(13,'2020_09_18_095136_delete_ixp_table',6),(14,'2020_11_16_102415_database_fixes',7),(15,'2021_03_12_150418_create_log_table',8),(16,'2021_04_14_125742_user_pref',9),(17,'2021_04_14_101948_update_timestamps',10),(18,'2021_05_18_085721_add_note_infrastructure',11),(19,'2021_05_18_114206_update_pp_prefix_size',12),(20,'2020_06_01_143931_database_schema_at_end_v5',13),(21,'2021_03_30_124916_create_atlas_probes',13),(22,'2021_03_30_125238_create_atlas_runs',13),(23,'2021_03_30_125422_create_atlas_measurements',13),(24,'2021_03_30_125723_create_atlas_results',13),(25,'2021_06_11_141137_update_db_doctrine2eloquent',13),(26,'2021_07_20_134716_fix_last_updated_and_timestamps',13),(27,'2021_09_16_195333_add_rate_limit_col_to_physint',13),(28,'2021_09_17_144421_modernise_irrdb_conf_table',13); /*!40000 ALTER TABLE `migrations` ENABLE KEYS */; UNLOCK TABLES; @@ -1435,19 +1435,19 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `netinfo`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `netinfo` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `vlan_id` int(11) NOT NULL, - `protocol` int(11) NOT NULL, - `property` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `ix` int(11) NOT NULL DEFAULT '0', - `value` longtext COLLATE utf8_unicode_ci NOT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `vlan_id` int NOT NULL, + `protocol` int NOT NULL, + `property` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `ix` int NOT NULL DEFAULT '0', + `value` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `IDX_F843DE6B8B4937A1` (`vlan_id`), KEY `VlanProtoProp` (`protocol`,`property`,`vlan_id`), CONSTRAINT `FK_F843DE6B8B4937A1` FOREIGN KEY (`vlan_id`) REFERENCES `vlan` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -1465,22 +1465,22 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `networkinfo`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `networkinfo` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `vlanid` int(11) DEFAULT NULL, - `protocol` int(11) DEFAULT NULL, - `network` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `masklen` int(11) DEFAULT NULL, - `rs1address` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL, - `rs2address` varchar(40) COLLATE utf8_unicode_ci DEFAULT NULL, - `dnsfile` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `vlanid` int DEFAULT NULL, + `protocol` int DEFAULT NULL, + `network` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `masklen` int DEFAULT NULL, + `rs1address` varchar(40) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `rs2address` varchar(40) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `dnsfile` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `IDX_6A0AF167F48D6D0` (`vlanid`), CONSTRAINT `FK_6A0AF167F48D6D0` FOREIGN KEY (`vlanid`) REFERENCES `vlan` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -1498,16 +1498,16 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `oui`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `oui` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `oui` varchar(6) COLLATE utf8_unicode_ci NOT NULL, - `organisation` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `oui` varchar(6) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `organisation` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `UNIQ_DAEC0140DAEC0140` (`oui`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -1525,10 +1525,10 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `password_resets`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `password_resets` ( - `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, - `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, KEY `password_resets_email_index` (`email`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; @@ -1549,27 +1549,27 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `patch_panel`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `patch_panel` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `cabinet_id` int(11) DEFAULT NULL, - `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `colo_reference` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `cable_type` int(11) NOT NULL, - `connector_type` int(11) NOT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `cabinet_id` int DEFAULT NULL, + `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `colo_reference` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `cable_type` int NOT NULL, + `connector_type` int NOT NULL, `installation_date` datetime DEFAULT NULL, - `port_prefix` varchar(20) COLLATE utf8_unicode_ci NOT NULL, - `chargeable` int(11) NOT NULL DEFAULT '0', - `location_notes` longtext COLLATE utf8_unicode_ci NOT NULL, + `port_prefix` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `chargeable` int NOT NULL DEFAULT '0', + `location_notes` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `active` tinyint(1) NOT NULL DEFAULT '1', - `u_position` int(11) DEFAULT NULL, - `mounted_at` smallint(6) DEFAULT NULL, + `u_position` int DEFAULT NULL, + `mounted_at` smallint DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `IDX_79A52562D351EC` (`cabinet_id`), CONSTRAINT `FK_79A52562D351EC` FOREIGN KEY (`cabinet_id`) REFERENCES `cabinet` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -1587,30 +1587,30 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `patch_panel_port`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `patch_panel_port` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `switch_port_id` int(11) DEFAULT NULL, - `patch_panel_id` int(11) DEFAULT NULL, - `customer_id` int(11) DEFAULT NULL, - `state` int(11) NOT NULL, - `notes` longtext COLLATE utf8_unicode_ci, + `id` int NOT NULL AUTO_INCREMENT, + `switch_port_id` int DEFAULT NULL, + `patch_panel_id` int DEFAULT NULL, + `customer_id` int DEFAULT NULL, + `state` int NOT NULL, + `notes` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci, `assigned_at` date DEFAULT NULL, `connected_at` date DEFAULT NULL, `cease_requested_at` date DEFAULT NULL, `ceased_at` date DEFAULT NULL, `last_state_change` date DEFAULT NULL, `internal_use` tinyint(1) NOT NULL DEFAULT '0', - `chargeable` int(11) NOT NULL DEFAULT '2', - `duplex_master_id` int(11) DEFAULT NULL, - `number` smallint(6) NOT NULL, - `colo_circuit_ref` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `ticket_ref` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `private_notes` longtext COLLATE utf8_unicode_ci, - `owned_by` int(11) NOT NULL DEFAULT '0', - `loa_code` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL, - `description` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `colo_billing_ref` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `chargeable` int NOT NULL DEFAULT '2', + `duplex_master_id` int DEFAULT NULL, + `number` smallint NOT NULL, + `colo_circuit_ref` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `ticket_ref` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `private_notes` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci, + `owned_by` int NOT NULL DEFAULT '0', + `loa_code` varchar(25) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `description` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `colo_billing_ref` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), @@ -1622,7 +1622,7 @@ CREATE TABLE `patch_panel_port` ( CONSTRAINT `FK_4BE40BC2635D5D87` FOREIGN KEY (`patch_panel_id`) REFERENCES `patch_panel` (`id`), CONSTRAINT `FK_4BE40BC29395C3F3` FOREIGN KEY (`customer_id`) REFERENCES `cust` (`id`), CONSTRAINT `FK_4BE40BC2C1DA6A2A` FOREIGN KEY (`switch_port_id`) REFERENCES `switchport` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -1640,23 +1640,23 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `patch_panel_port_file`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `patch_panel_port_file` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `patch_panel_port_id` int(11) DEFAULT NULL, - `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `patch_panel_port_id` int DEFAULT NULL, + `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `type` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `uploaded_at` datetime NOT NULL, - `uploaded_by` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `size` int(11) NOT NULL, + `uploaded_by` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `size` int NOT NULL, `is_private` tinyint(1) NOT NULL DEFAULT '0', - `storage_location` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `storage_location` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `IDX_28089403B0F978FF` (`patch_panel_port_id`), CONSTRAINT `FK_28089403B0F978FF` FOREIGN KEY (`patch_panel_port_id`) REFERENCES `patch_panel_port` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -1674,29 +1674,29 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `patch_panel_port_history`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `patch_panel_port_history` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `patch_panel_port_id` int(11) DEFAULT NULL, - `state` int(11) NOT NULL, - `notes` longtext COLLATE utf8_unicode_ci, + `id` int NOT NULL AUTO_INCREMENT, + `patch_panel_port_id` int DEFAULT NULL, + `state` int NOT NULL, + `notes` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci, `assigned_at` date DEFAULT NULL, `connected_at` date DEFAULT NULL, `cease_requested_at` date DEFAULT NULL, `ceased_at` date DEFAULT NULL, `internal_use` tinyint(1) NOT NULL DEFAULT '0', - `chargeable` int(11) NOT NULL DEFAULT '0', - `customer` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `switchport` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `duplex_master_id` int(11) DEFAULT NULL, - `number` smallint(6) NOT NULL, - `colo_circuit_ref` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `ticket_ref` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `private_notes` longtext COLLATE utf8_unicode_ci, - `owned_by` int(11) NOT NULL DEFAULT '0', - `description` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `colo_billing_ref` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `cust_id` int(11) DEFAULT NULL, + `chargeable` int NOT NULL DEFAULT '0', + `customer` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `switchport` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `duplex_master_id` int DEFAULT NULL, + `number` smallint NOT NULL, + `colo_circuit_ref` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `ticket_ref` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `private_notes` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci, + `owned_by` int NOT NULL DEFAULT '0', + `description` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `colo_billing_ref` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `cust_id` int DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), @@ -1704,7 +1704,7 @@ CREATE TABLE `patch_panel_port_history` ( KEY `IDX_CB80B54A3838446` (`duplex_master_id`), CONSTRAINT `FK_CB80B54A3838446` FOREIGN KEY (`duplex_master_id`) REFERENCES `patch_panel_port_history` (`id`), CONSTRAINT `FK_CB80B54AB0F978FF` FOREIGN KEY (`patch_panel_port_id`) REFERENCES `patch_panel_port` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -1722,23 +1722,23 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `patch_panel_port_history_file`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `patch_panel_port_history_file` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `patch_panel_port_history_id` int(11) DEFAULT NULL, - `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `patch_panel_port_history_id` int DEFAULT NULL, + `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `type` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `uploaded_at` datetime NOT NULL, - `uploaded_by` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `size` int(11) NOT NULL, + `uploaded_by` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `size` int NOT NULL, `is_private` tinyint(1) NOT NULL DEFAULT '0', - `storage_location` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `storage_location` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `IDX_206EAD4E6F461430` (`patch_panel_port_history_id`), CONSTRAINT `FK_206EAD4E6F461430` FOREIGN KEY (`patch_panel_port_history_id`) REFERENCES `patch_panel_port_history` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -1756,16 +1756,16 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `peering_manager`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `peering_manager` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `custid` int(11) DEFAULT NULL, - `peerid` int(11) DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `custid` int DEFAULT NULL, + `peerid` int DEFAULT NULL, `email_last_sent` datetime DEFAULT NULL, - `emails_sent` int(11) DEFAULT NULL, + `emails_sent` int DEFAULT NULL, `peered` tinyint(1) DEFAULT NULL, `rejected` tinyint(1) DEFAULT NULL, - `notes` longtext COLLATE utf8_unicode_ci, + `notes` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), @@ -1773,7 +1773,7 @@ CREATE TABLE `peering_manager` ( KEY `IDX_35A725974E5F9AFF` (`peerid`), CONSTRAINT `FK_35A725974E5F9AFF` FOREIGN KEY (`peerid`) REFERENCES `cust` (`id`) ON DELETE CASCADE, CONSTRAINT `FK_35A72597DA0209B9` FOREIGN KEY (`custid`) REFERENCES `cust` (`id`) ON DELETE CASCADE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -1791,22 +1791,22 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `peering_matrix`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `peering_matrix` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `x_custid` int(11) DEFAULT NULL, - `y_custid` int(11) DEFAULT NULL, - `vlan` int(11) DEFAULT NULL, - `x_as` int(11) DEFAULT NULL, - `y_as` int(11) DEFAULT NULL, - `peering_status` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `x_custid` int DEFAULT NULL, + `y_custid` int DEFAULT NULL, + `vlan` int DEFAULT NULL, + `x_as` int DEFAULT NULL, + `y_as` int DEFAULT NULL, + `peering_status` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `IDX_C1A6F6F9A4CA6408` (`x_custid`), KEY `IDX_C1A6F6F968606496` (`y_custid`), CONSTRAINT `FK_C1A6F6F968606496` FOREIGN KEY (`y_custid`) REFERENCES `cust` (`id`) ON DELETE CASCADE, CONSTRAINT `FK_C1A6F6F9A4CA6408` FOREIGN KEY (`x_custid`) REFERENCES `cust` (`id`) ON DELETE CASCADE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -1824,16 +1824,17 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `physicalinterface`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `physicalinterface` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `switchportid` int(11) DEFAULT NULL, - `fanout_physical_interface_id` int(11) DEFAULT NULL, - `virtualinterfaceid` int(11) DEFAULT NULL, - `status` int(11) DEFAULT NULL, - `speed` int(11) DEFAULT NULL, - `duplex` varchar(16) COLLATE utf8_unicode_ci DEFAULT NULL, - `notes` longtext COLLATE utf8_unicode_ci, + `id` int NOT NULL AUTO_INCREMENT, + `switchportid` int DEFAULT NULL, + `fanout_physical_interface_id` int DEFAULT NULL, + `virtualinterfaceid` int DEFAULT NULL, + `status` int DEFAULT NULL, + `speed` int DEFAULT NULL, + `duplex` varchar(16) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `rate_limit` int unsigned DEFAULT NULL, + `notes` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci, `autoneg` tinyint(1) NOT NULL DEFAULT '1', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, @@ -1844,7 +1845,7 @@ CREATE TABLE `physicalinterface` ( CONSTRAINT `FK_5FFF4D602E68AB8C` FOREIGN KEY (`fanout_physical_interface_id`) REFERENCES `physicalinterface` (`id`), CONSTRAINT `FK_5FFF4D60BFDF15D5` FOREIGN KEY (`virtualinterfaceid`) REFERENCES `virtualinterface` (`id`) ON DELETE CASCADE, CONSTRAINT `FK_5FFF4D60E5F6FACB` FOREIGN KEY (`switchportid`) REFERENCES `switchport` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -1853,7 +1854,7 @@ CREATE TABLE `physicalinterface` ( LOCK TABLES `physicalinterface` WRITE; /*!40000 ALTER TABLE `physicalinterface` DISABLE KEYS */; -INSERT INTO `physicalinterface` VALUES (1,3,NULL,1,1,1000,'full','',1,NULL,NULL),(2,4,NULL,1,1,1000,'full','',1,NULL,NULL),(3,25,NULL,2,1,1000,'full',NULL,1,NULL,NULL),(4,8,NULL,3,1,100,'full',NULL,1,NULL,NULL),(5,6,NULL,4,1,10,'full',NULL,1,NULL,NULL),(6,30,NULL,5,1,10,'full',NULL,1,NULL,NULL),(7,9,NULL,6,1,1000,'full',NULL,1,NULL,NULL),(8,32,NULL,7,1,10000,'full',NULL,1,NULL,NULL),(9,18,NULL,8,1,1000,'full',NULL,1,NULL,NULL),(10,42,NULL,9,1,1000,'full',NULL,1,NULL,NULL),(11,19,NULL,8,1,1000,'full',NULL,1,NULL,NULL),(12,43,NULL,9,1,1000,'full',NULL,1,NULL,NULL),(13,27,NULL,10,4,1000,'full',NULL,1,NULL,NULL); +INSERT INTO `physicalinterface` VALUES (1,3,NULL,1,1,1000,'full',NULL,'',1,NULL,NULL),(2,4,NULL,1,1,1000,'full',NULL,'',1,NULL,NULL),(3,25,NULL,2,1,1000,'full',NULL,NULL,1,NULL,NULL),(4,8,NULL,3,1,100,'full',NULL,NULL,1,NULL,NULL),(5,6,NULL,4,1,10,'full',NULL,NULL,1,NULL,NULL),(6,30,NULL,5,1,10,'full',NULL,NULL,1,NULL,NULL),(7,9,NULL,6,1,1000,'full',NULL,NULL,1,NULL,NULL),(8,32,NULL,7,1,10000,'full',NULL,NULL,1,NULL,NULL),(9,18,NULL,8,1,1000,'full',NULL,NULL,1,NULL,NULL),(10,42,NULL,9,1,1000,'full',NULL,NULL,1,NULL,NULL),(11,19,NULL,8,1,1000,'full',NULL,NULL,1,NULL,NULL),(12,43,NULL,9,1,1000,'full',NULL,NULL,1,NULL,NULL),(13,27,NULL,10,4,1000,'full',NULL,NULL,1,NULL,NULL); /*!40000 ALTER TABLE `physicalinterface` ENABLE KEYS */; UNLOCK TABLES; @@ -1863,20 +1864,20 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `route_server_filters`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `route_server_filters` ( - `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, - `customer_id` int(11) DEFAULT NULL, - `peer_id` int(11) DEFAULT NULL, - `vlan_id` int(11) DEFAULT NULL, - `received_prefix` varchar(43) COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `advertised_prefix` varchar(43) COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `protocol` smallint(6) DEFAULT NULL, - `action_advertise` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `action_receive` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `id` bigint unsigned NOT NULL AUTO_INCREMENT, + `customer_id` int DEFAULT NULL, + `peer_id` int DEFAULT NULL, + `vlan_id` int DEFAULT NULL, + `received_prefix` varchar(43) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `advertised_prefix` varchar(43) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `protocol` smallint DEFAULT NULL, + `action_advertise` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `action_receive` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `enabled` tinyint(1) NOT NULL DEFAULT '1', - `order_by` int(11) NOT NULL, - `live` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `order_by` int NOT NULL, + `live` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), @@ -1904,39 +1905,40 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `routers`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `routers` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `vlan_id` int(11) NOT NULL, - `handle` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `protocol` smallint(5) unsigned NOT NULL, - `type` smallint(5) unsigned NOT NULL, - `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `shortname` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `router_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `peering_ip` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `asn` int(10) unsigned NOT NULL, - `software` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `mgmt_host` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `api` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `api_type` smallint(5) unsigned NOT NULL, - `lg_access` smallint(5) unsigned DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `vlan_id` int NOT NULL, + `handle` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `protocol` smallint unsigned NOT NULL, + `type` smallint unsigned NOT NULL, + `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `shortname` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `router_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `peering_ip` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `asn` int unsigned NOT NULL, + `software` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `mgmt_host` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `api` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `api_type` smallint unsigned NOT NULL, + `lg_access` smallint unsigned DEFAULT NULL, `quarantine` tinyint(1) NOT NULL, `bgp_lc` tinyint(1) NOT NULL, - `template` varchar(255) COLLATE utf8_unicode_ci NOT NULL, + `template` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `skip_md5` tinyint(1) NOT NULL, `rpki` tinyint(1) NOT NULL DEFAULT '0', - `software_version` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `operating_system` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `operating_system_version` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `software_version` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `operating_system` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `operating_system_version` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `rfc1997_passthru` tinyint(1) NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, + `last_updated` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `UNIQ_504FC9BE918020D9` (`handle`), KEY `IDX_504FC9BE8B4937A1` (`vlan_id`), CONSTRAINT `FK_504FC9BE8B4937A1` FOREIGN KEY (`vlan_id`) REFERENCES `vlan` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -1945,7 +1947,7 @@ CREATE TABLE `routers` ( LOCK TABLES `routers` WRITE; /*!40000 ALTER TABLE `routers` DISABLE KEYS */; -INSERT INTO `routers` VALUES (1,1,'rc1-lan1-ipv4',4,2,'INEX LAN1 - Route Collector - IPv4','RC1 - LAN1 - IPv4','192.0.2.8','192.0.2.8',65500,'1','203.0.113.8','http://rc1-lan1-ipv4.mgmt.example.com/api',1,0,0,0,'api/v4/router/collector/bird/standard',0,0,NULL,NULL,NULL,0,NULL,NULL),(2,1,'rc1-lan1-ipv6',6,2,'INEX LAN1 - Route Collector - IPv6','RC1 - LAN1 - IPv6','192.0.2.8','2001:db8::8',65500,'1','2001:db8:0:0:2::8','http://rc1-lan1-ipv6.mgmt.example.com/api',1,0,0,0,'api/v4/router/collector/bird/standard',0,0,NULL,NULL,NULL,0,NULL,NULL),(3,2,'rc1-lan2-ipv4',4,2,'INEX LAN2 - Route Collector - IPv4','RC1 - LAN2 - IPv4','192.0.2.9','192.0.2.9',65500,'1','203.0.113.9','http://rc1-lan2-ipv4.mgmt.example.com/api',1,0,0,0,'api/v4/router/collector/bird/standard',0,0,NULL,NULL,NULL,0,NULL,NULL),(4,2,'rc1-lan2-ipv6',6,2,'INEX LAN2 - Route Collector - IPv6','RC1 - LAN2 - IPv6','192.0.2.9','2001:db8::9',65500,'1','2001:db8:0:0:2::9','http://rc1-lan2-ipv6.mgmt.example.com/api',1,0,0,0,'api/v4/router/collector/bird/standard',0,0,NULL,NULL,NULL,0,NULL,NULL),(5,1,'rs1-lan1-ipv4',4,1,'INEX LAN1 - Route Server - IPv4','RS1 - LAN1 - IPv4','192.0.2.18','192.0.2.18',65501,'1','203.0.113.18','http://rs1-lan1-ipv4.mgmt.example.com/api',0,0,0,0,'api/v4/router/server/bird/standard',0,0,NULL,NULL,NULL,0,NULL,NULL),(6,1,'rs1-lan1-ipv6',6,1,'INEX LAN1 - Route Server - IPv6','RS1 - LAN1 - IPv6','192.0.2.18','2001:db8::18',65501,'1','2001:db8:0:0:2::18','http://rs1-lan1-ipv6.mgmt.example.com/api',1,0,0,0,'api/v4/router/server/bird/standard',0,0,NULL,NULL,NULL,0,NULL,NULL),(7,2,'rs1-lan2-ipv4',4,1,'INEX LAN2 - Route Server - IPv4','RS1 - LAN2 - IPv4','192.0.2.19','192.0.2.19',65501,'1','203.0.113.19','http://rs1-lan2-ipv4.mgmt.example.com/api',1,0,0,1,'api/v4/router/server/bird/standard',0,0,NULL,NULL,NULL,0,NULL,NULL),(8,2,'rs1-lan2-ipv6',6,1,'INEX LAN2 - Route Server - IPv6','RS1 - LAN2 - IPv6','192.0.2.19','2001:db8::19',65501,'1','2001:db8:0:0:2::19','http://rs1-lan2-ipv6.mgmt.example.com/api',1,0,0,0,'api/v4/router/server/bird/standard',0,0,NULL,NULL,NULL,0,NULL,NULL),(9,1,'as112-lan1-ipv4',4,3,'INEX LAN1 - AS112 Service - IPv4','AS112 - LAN1 - IPv4','192.0.2.6','192.0.2.6',112,'1','203.0.113.6','http://as112-lan1-ipv4.mgmt.example.com/api',1,0,0,0,'api/v4/router/as112/bird/standard',1,0,NULL,NULL,NULL,0,NULL,NULL),(10,1,'as112-lan1-ipv6',6,3,'INEX LAN1 - AS112 Service - IPv6','AS112 - LAN1 - IPv6','192.0.2.6','2001:db8:0:0:2::6',112,'1','203.0.113.6','http://as112-lan1-ipv6.mgmt.example.com/api',1,0,0,0,'api/v4/router/as112/bird/standard',1,0,NULL,NULL,NULL,0,NULL,NULL),(11,2,'as112-lan2-ipv4',4,3,'INEX LAN2 - AS112 Service - IPv4','AS112 - LAN2 - IPv4','192.0.2.16','192.0.2.16',112,'1','203.0.113.16','http://as112-lan2-ipv4.mgmt.example.com/api',1,0,0,0,'api/v4/router/as112/bird/standard',0,0,NULL,NULL,NULL,0,NULL,NULL),(12,2,'as112-lan2-ipv6',6,3,'INEX LAN2 - AS112 Service - IPv6','AS112 - LAN2 - IPv6','192.0.2.16','2001:db8:0:0:2::16',112,'1','203.0.113.16','http://as112-lan2-ipv6.mgmt.example.com/api',1,0,0,0,'api/v4/router/as112/bird/standard',0,0,NULL,NULL,NULL,0,NULL,NULL),(13,1,'unknown-template',6,2,'INEX LAN2 - Route Collector - IPv6','RC1 - LAN2 - IPv6','192.0.2.9','2001:db8::9',65500,'1','2001:db8:0:0:2::9','http://rc1-lan2-ipv6.mgmt.example.com/api',1,0,0,0,'api/v4/router/does-not-exist',0,0,NULL,NULL,NULL,0,NULL,NULL),(29,1,'b2-rs1-lan1-ipv4',4,1,'Bird2 - INEX LAN1 - Route Server - IPv4','B2 RS1 - LAN1 - IPv4','192.0.2.18','192.0.2.18',65501,'6','203.0.113.18',NULL,0,0,0,1,'api/v4/router/server/bird2/standard',0,1,NULL,NULL,NULL,0,NULL,NULL),(30,1,'b2-rs1-lan1-ipv6',6,1,'Bird2 - INEX LAN1 - Route Server - IPv6','B2 RS1 - LAN1 - IPv6','192.0.2.18','2001:db8::8',65501,'6','203.0.113.18',NULL,0,0,0,1,'api/v4/router/server/bird2/standard',0,1,NULL,NULL,NULL,1,NULL,NULL),(31,1,'b2-rc1-lan1-ipv4',4,2,'Bird2 - INEX LAN1 - Route Collector - IPv4','B2 RC1 - LAN1 - IPv4','192.0.2.8','192.0.2.8',65500,'1','203.0.113.8','http://rc1-lan1-ipv4.mgmt.example.com/api',1,0,0,1,'api/v4/router/collector/bird2/standard',0,1,NULL,NULL,NULL,0,NULL,NULL),(32,1,'b2-rc1-lan1-ipv6',6,2,'Bird2 - INEX LAN1 - Route Collector - IPv6','B2 RC1 - LAN1 - IPv6','192.0.2.8','2001:db8::8',65500,'1','2001:db8:0:0:2::8','http://rc1-lan1-ipv6.mgmt.example.com/api',1,0,0,1,'api/v4/router/collector/bird2/standard',0,1,NULL,NULL,NULL,0,NULL,NULL); +INSERT INTO `routers` VALUES (1,1,'rc1-lan1-ipv4',4,2,'INEX LAN1 - Route Collector - IPv4','RC1 - LAN1 - IPv4','192.0.2.8','192.0.2.8',65500,'1','203.0.113.8','http://rc1-lan1-ipv4.mgmt.example.com/api',1,0,0,0,'api/v4/router/collector/bird/standard',0,0,NULL,NULL,NULL,0,NULL,NULL,NULL),(2,1,'rc1-lan1-ipv6',6,2,'INEX LAN1 - Route Collector - IPv6','RC1 - LAN1 - IPv6','192.0.2.8','2001:db8::8',65500,'1','2001:db8:0:0:2::8','http://rc1-lan1-ipv6.mgmt.example.com/api',1,0,0,0,'api/v4/router/collector/bird/standard',0,0,NULL,NULL,NULL,0,NULL,NULL,NULL),(3,2,'rc1-lan2-ipv4',4,2,'INEX LAN2 - Route Collector - IPv4','RC1 - LAN2 - IPv4','192.0.2.9','192.0.2.9',65500,'1','203.0.113.9','http://rc1-lan2-ipv4.mgmt.example.com/api',1,0,0,0,'api/v4/router/collector/bird/standard',0,0,NULL,NULL,NULL,0,NULL,NULL,NULL),(4,2,'rc1-lan2-ipv6',6,2,'INEX LAN2 - Route Collector - IPv6','RC1 - LAN2 - IPv6','192.0.2.9','2001:db8::9',65500,'1','2001:db8:0:0:2::9','http://rc1-lan2-ipv6.mgmt.example.com/api',1,0,0,0,'api/v4/router/collector/bird/standard',0,0,NULL,NULL,NULL,0,NULL,NULL,NULL),(5,1,'rs1-lan1-ipv4',4,1,'INEX LAN1 - Route Server - IPv4','RS1 - LAN1 - IPv4','192.0.2.18','192.0.2.18',65501,'1','203.0.113.18','http://rs1-lan1-ipv4.mgmt.example.com/api',0,0,0,0,'api/v4/router/server/bird/standard',0,0,NULL,NULL,NULL,0,NULL,NULL,NULL),(6,1,'rs1-lan1-ipv6',6,1,'INEX LAN1 - Route Server - IPv6','RS1 - LAN1 - IPv6','192.0.2.18','2001:db8::18',65501,'1','2001:db8:0:0:2::18','http://rs1-lan1-ipv6.mgmt.example.com/api',1,0,0,0,'api/v4/router/server/bird/standard',0,0,NULL,NULL,NULL,0,NULL,NULL,NULL),(7,2,'rs1-lan2-ipv4',4,1,'INEX LAN2 - Route Server - IPv4','RS1 - LAN2 - IPv4','192.0.2.19','192.0.2.19',65501,'1','203.0.113.19','http://rs1-lan2-ipv4.mgmt.example.com/api',1,0,0,1,'api/v4/router/server/bird/standard',0,0,NULL,NULL,NULL,0,NULL,NULL,NULL),(8,2,'rs1-lan2-ipv6',6,1,'INEX LAN2 - Route Server - IPv6','RS1 - LAN2 - IPv6','192.0.2.19','2001:db8::19',65501,'1','2001:db8:0:0:2::19','http://rs1-lan2-ipv6.mgmt.example.com/api',1,0,0,0,'api/v4/router/server/bird/standard',0,0,NULL,NULL,NULL,0,NULL,NULL,NULL),(9,1,'as112-lan1-ipv4',4,3,'INEX LAN1 - AS112 Service - IPv4','AS112 - LAN1 - IPv4','192.0.2.6','192.0.2.6',112,'1','203.0.113.6','http://as112-lan1-ipv4.mgmt.example.com/api',1,0,0,0,'api/v4/router/as112/bird/standard',1,0,NULL,NULL,NULL,0,NULL,NULL,NULL),(10,1,'as112-lan1-ipv6',6,3,'INEX LAN1 - AS112 Service - IPv6','AS112 - LAN1 - IPv6','192.0.2.6','2001:db8:0:0:2::6',112,'1','203.0.113.6','http://as112-lan1-ipv6.mgmt.example.com/api',1,0,0,0,'api/v4/router/as112/bird/standard',1,0,NULL,NULL,NULL,0,NULL,NULL,NULL),(11,2,'as112-lan2-ipv4',4,3,'INEX LAN2 - AS112 Service - IPv4','AS112 - LAN2 - IPv4','192.0.2.16','192.0.2.16',112,'1','203.0.113.16','http://as112-lan2-ipv4.mgmt.example.com/api',1,0,0,0,'api/v4/router/as112/bird/standard',0,0,NULL,NULL,NULL,0,NULL,NULL,NULL),(12,2,'as112-lan2-ipv6',6,3,'INEX LAN2 - AS112 Service - IPv6','AS112 - LAN2 - IPv6','192.0.2.16','2001:db8:0:0:2::16',112,'1','203.0.113.16','http://as112-lan2-ipv6.mgmt.example.com/api',1,0,0,0,'api/v4/router/as112/bird/standard',0,0,NULL,NULL,NULL,0,NULL,NULL,NULL),(13,1,'unknown-template',6,2,'INEX LAN2 - Route Collector - IPv6','RC1 - LAN2 - IPv6','192.0.2.9','2001:db8::9',65500,'1','2001:db8:0:0:2::9','http://rc1-lan2-ipv6.mgmt.example.com/api',1,0,0,0,'api/v4/router/does-not-exist',0,0,NULL,NULL,NULL,0,NULL,NULL,NULL),(29,1,'b2-rs1-lan1-ipv4',4,1,'Bird2 - INEX LAN1 - Route Server - IPv4','B2 RS1 - LAN1 - IPv4','192.0.2.18','192.0.2.18',65501,'6','203.0.113.18',NULL,0,0,0,1,'api/v4/router/server/bird2/standard',0,1,NULL,NULL,NULL,0,NULL,NULL,NULL),(30,1,'b2-rs1-lan1-ipv6',6,1,'Bird2 - INEX LAN1 - Route Server - IPv6','B2 RS1 - LAN1 - IPv6','192.0.2.18','2001:db8::8',65501,'6','203.0.113.18',NULL,0,0,0,1,'api/v4/router/server/bird2/standard',0,1,NULL,NULL,NULL,1,NULL,NULL,NULL),(31,1,'b2-rc1-lan1-ipv4',4,2,'Bird2 - INEX LAN1 - Route Collector - IPv4','B2 RC1 - LAN1 - IPv4','192.0.2.8','192.0.2.8',65500,'1','203.0.113.8','http://rc1-lan1-ipv4.mgmt.example.com/api',1,0,0,1,'api/v4/router/collector/bird2/standard',0,1,NULL,NULL,NULL,0,NULL,NULL,NULL),(32,1,'b2-rc1-lan1-ipv6',6,2,'Bird2 - INEX LAN1 - Route Collector - IPv6','B2 RC1 - LAN1 - IPv6','192.0.2.8','2001:db8::8',65500,'1','2001:db8:0:0:2::8','http://rc1-lan1-ipv6.mgmt.example.com/api',1,0,0,1,'api/v4/router/collector/bird2/standard',0,1,NULL,NULL,NULL,0,NULL,NULL,NULL); /*!40000 ALTER TABLE `routers` ENABLE KEYS */; UNLOCK TABLES; @@ -1955,19 +1957,19 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `rs_prefixes`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `rs_prefixes` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `custid` int(11) DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `custid` int DEFAULT NULL, `timestamp` datetime DEFAULT NULL, - `prefix` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL, - `protocol` int(11) DEFAULT NULL, - `irrdb` int(11) DEFAULT NULL, - `rs_origin` int(11) DEFAULT NULL, + `prefix` varchar(64) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `protocol` int DEFAULT NULL, + `irrdb` int DEFAULT NULL, + `rs_origin` int DEFAULT NULL, PRIMARY KEY (`id`), KEY `IDX_29FA9871DA0209B9` (`custid`), CONSTRAINT `FK_29FA9871DA0209B9` FOREIGN KEY (`custid`) REFERENCES `cust` (`id`) ON DELETE CASCADE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -1985,14 +1987,14 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `sessions`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `sessions` ( - `id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, - `user_id` bigint(20) DEFAULT NULL, - `ip_address` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `user_agent` text COLLATE utf8mb4_unicode_ci, - `payload` text COLLATE utf8mb4_unicode_ci NOT NULL, - `last_activity` int(11) NOT NULL, + `id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `user_id` bigint DEFAULT NULL, + `ip_address` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `user_agent` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `payload` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `last_activity` int NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `sessions_id_unique` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; @@ -2014,18 +2016,18 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `sflow_receiver`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `sflow_receiver` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `virtual_interface_id` int(11) DEFAULT NULL, - `dst_ip` varchar(255) COLLATE utf8_unicode_ci NOT NULL, - `dst_port` int(11) NOT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `virtual_interface_id` int DEFAULT NULL, + `dst_ip` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, + `dst_port` int NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `IDX_E633EA142C0D6F5F` (`virtual_interface_id`), CONSTRAINT `FK_E633EA142C0D6F5F` FOREIGN KEY (`virtual_interface_id`) REFERENCES `virtualinterface` (`id`) ON DELETE CASCADE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -2043,33 +2045,33 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `switch`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `switch` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `infrastructure` int(11) DEFAULT NULL, - `cabinetid` int(11) DEFAULT NULL, - `vendorid` int(11) DEFAULT NULL, - `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `hostname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `ipv4addr` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `ipv6addr` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `snmppasswd` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `model` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `infrastructure` int DEFAULT NULL, + `cabinetid` int DEFAULT NULL, + `vendorid` int DEFAULT NULL, + `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `hostname` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `ipv4addr` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `ipv6addr` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `snmppasswd` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `model` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `active` tinyint(1) DEFAULT '1', - `os` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `os` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `osDate` datetime DEFAULT NULL, - `osVersion` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `osVersion` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `lastPolled` datetime DEFAULT NULL, - `notes` longtext COLLATE utf8_unicode_ci, - `serialNumber` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `notes` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci, + `serialNumber` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `mauSupported` tinyint(1) DEFAULT NULL, - `asn` int(10) unsigned DEFAULT NULL, - `loopback_ip` varchar(39) COLLATE utf8_unicode_ci DEFAULT NULL, - `loopback_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `mgmt_mac_address` varchar(12) COLLATE utf8_unicode_ci DEFAULT NULL, - `snmp_engine_time` bigint(20) DEFAULT NULL, - `snmp_system_uptime` bigint(20) DEFAULT NULL, - `snmp_engine_boots` bigint(20) DEFAULT NULL, + `asn` int unsigned DEFAULT NULL, + `loopback_ip` varchar(39) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `loopback_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `mgmt_mac_address` varchar(12) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `snmp_engine_time` bigint DEFAULT NULL, + `snmp_system_uptime` bigint DEFAULT NULL, + `snmp_engine_boots` bigint DEFAULT NULL, `poll` tinyint(1) NOT NULL DEFAULT '1', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, @@ -2082,7 +2084,7 @@ CREATE TABLE `switch` ( CONSTRAINT `FK_6FE94B182B96718A` FOREIGN KEY (`cabinetid`) REFERENCES `cabinet` (`id`), CONSTRAINT `FK_6FE94B18420FB55F` FOREIGN KEY (`vendorid`) REFERENCES `vendor` (`id`), CONSTRAINT `FK_6FE94B18D129B190` FOREIGN KEY (`infrastructure`) REFERENCES `infrastructure` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -2101,28 +2103,28 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `switchport`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `switchport` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `switchid` int(11) DEFAULT NULL, - `type` int(11) DEFAULT NULL, - `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `switchid` int DEFAULT NULL, + `type` int DEFAULT NULL, + `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `active` tinyint(1) NOT NULL DEFAULT '1', - `ifIndex` int(11) DEFAULT NULL, - `ifName` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `ifAlias` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `ifHighSpeed` int(11) DEFAULT NULL, - `ifMtu` int(11) DEFAULT NULL, - `ifPhysAddress` varchar(17) COLLATE utf8_unicode_ci DEFAULT NULL, - `ifAdminStatus` int(11) DEFAULT NULL, - `ifOperStatus` int(11) DEFAULT NULL, - `ifLastChange` int(11) DEFAULT NULL, + `ifIndex` int DEFAULT NULL, + `ifName` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `ifAlias` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `ifHighSpeed` int DEFAULT NULL, + `ifMtu` int DEFAULT NULL, + `ifPhysAddress` varchar(17) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `ifAdminStatus` int DEFAULT NULL, + `ifOperStatus` int DEFAULT NULL, + `ifLastChange` int DEFAULT NULL, `lastSnmpPoll` datetime DEFAULT NULL, - `lagIfIndex` int(11) DEFAULT NULL, - `mauType` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `mauState` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `mauAvailability` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `mauJacktype` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `lagIfIndex` int DEFAULT NULL, + `mauType` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `mauState` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `mauAvailability` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `mauJacktype` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `mauAutoNegSupported` tinyint(1) DEFAULT NULL, `mauAutoNegAdminState` tinyint(1) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, @@ -2130,7 +2132,7 @@ CREATE TABLE `switchport` ( PRIMARY KEY (`id`), KEY `IDX_F84274F1DC2C08F8` (`switchid`), CONSTRAINT `FK_F84274F1DC2C08F8` FOREIGN KEY (`switchid`) REFERENCES `switch` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=57 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=57 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -2149,15 +2151,15 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `telescope_entries`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `telescope_entries` ( - `sequence` bigint(20) unsigned NOT NULL AUTO_INCREMENT, - `uuid` char(36) COLLATE utf8mb4_unicode_ci NOT NULL, - `batch_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL, - `family_hash` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `sequence` bigint unsigned NOT NULL AUTO_INCREMENT, + `uuid` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `batch_id` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `family_hash` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `should_display_on_index` tinyint(1) NOT NULL DEFAULT '1', - `type` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL, - `content` longtext COLLATE utf8mb4_unicode_ci NOT NULL, + `type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` datetime DEFAULT NULL, PRIMARY KEY (`sequence`), UNIQUE KEY `telescope_entries_uuid_unique` (`uuid`), @@ -2183,10 +2185,10 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `telescope_entries_tags`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `telescope_entries_tags` ( - `entry_uuid` char(36) COLLATE utf8mb4_unicode_ci NOT NULL, - `tag` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `entry_uuid` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `tag` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, KEY `telescope_entries_tags_entry_uuid_tag_index` (`entry_uuid`,`tag`), KEY `telescope_entries_tags_tag_index` (`tag`), CONSTRAINT `telescope_entries_tags_entry_uuid_foreign` FOREIGN KEY (`entry_uuid`) REFERENCES `telescope_entries` (`uuid`) ON DELETE CASCADE @@ -2209,9 +2211,9 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `telescope_monitoring`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `telescope_monitoring` ( - `tag` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL + `tag` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; @@ -2230,17 +2232,17 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `traffic_95th`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `traffic_95th` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `cust_id` int(11) DEFAULT NULL, + `id` bigint NOT NULL AUTO_INCREMENT, + `cust_id` int DEFAULT NULL, `datetime` datetime DEFAULT NULL, - `average` bigint(20) DEFAULT NULL, - `max` bigint(20) DEFAULT NULL, + `average` bigint DEFAULT NULL, + `max` bigint DEFAULT NULL, PRIMARY KEY (`id`), KEY `IDX_70BB409ABFF2A482` (`cust_id`), CONSTRAINT `FK_70BB409ABFF2A482` FOREIGN KEY (`cust_id`) REFERENCES `cust` (`id`) ON DELETE CASCADE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -2258,16 +2260,16 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `traffic_95th_monthly`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `traffic_95th_monthly` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `cust_id` int(11) DEFAULT NULL, + `id` bigint NOT NULL AUTO_INCREMENT, + `cust_id` int DEFAULT NULL, `month` date DEFAULT NULL, - `max_95th` bigint(20) DEFAULT NULL, + `max_95th` bigint DEFAULT NULL, PRIMARY KEY (`id`), KEY `IDX_ED79F9DCBFF2A482` (`cust_id`), CONSTRAINT `FK_ED79F9DCBFF2A482` FOREIGN KEY (`cust_id`) REFERENCES `cust` (`id`) ON DELETE CASCADE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -2285,42 +2287,42 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `traffic_daily`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `traffic_daily` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `cust_id` int(11) NOT NULL, + `id` bigint NOT NULL AUTO_INCREMENT, + `cust_id` int NOT NULL, `day` date DEFAULT NULL, - `category` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL, - `day_avg_in` bigint(20) DEFAULT NULL, - `day_avg_out` bigint(20) DEFAULT NULL, - `day_max_in` bigint(20) DEFAULT NULL, - `day_max_out` bigint(20) DEFAULT NULL, - `day_tot_in` bigint(20) DEFAULT NULL, - `day_tot_out` bigint(20) DEFAULT NULL, - `week_avg_in` bigint(20) DEFAULT NULL, - `week_avg_out` bigint(20) DEFAULT NULL, - `week_max_in` bigint(20) DEFAULT NULL, - `week_max_out` bigint(20) DEFAULT NULL, - `week_tot_in` bigint(20) DEFAULT NULL, - `week_tot_out` bigint(20) DEFAULT NULL, - `month_avg_in` bigint(20) DEFAULT NULL, - `month_avg_out` bigint(20) DEFAULT NULL, - `month_max_in` bigint(20) DEFAULT NULL, - `month_max_out` bigint(20) DEFAULT NULL, - `month_tot_in` bigint(20) DEFAULT NULL, - `month_tot_out` bigint(20) DEFAULT NULL, - `year_avg_in` bigint(20) DEFAULT NULL, - `year_avg_out` bigint(20) DEFAULT NULL, - `year_max_in` bigint(20) DEFAULT NULL, - `year_max_out` bigint(20) DEFAULT NULL, - `year_tot_in` bigint(20) DEFAULT NULL, - `year_tot_out` bigint(20) DEFAULT NULL, + `category` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `day_avg_in` bigint DEFAULT NULL, + `day_avg_out` bigint DEFAULT NULL, + `day_max_in` bigint DEFAULT NULL, + `day_max_out` bigint DEFAULT NULL, + `day_tot_in` bigint DEFAULT NULL, + `day_tot_out` bigint DEFAULT NULL, + `week_avg_in` bigint DEFAULT NULL, + `week_avg_out` bigint DEFAULT NULL, + `week_max_in` bigint DEFAULT NULL, + `week_max_out` bigint DEFAULT NULL, + `week_tot_in` bigint DEFAULT NULL, + `week_tot_out` bigint DEFAULT NULL, + `month_avg_in` bigint DEFAULT NULL, + `month_avg_out` bigint DEFAULT NULL, + `month_max_in` bigint DEFAULT NULL, + `month_max_out` bigint DEFAULT NULL, + `month_tot_in` bigint DEFAULT NULL, + `month_tot_out` bigint DEFAULT NULL, + `year_avg_in` bigint DEFAULT NULL, + `year_avg_out` bigint DEFAULT NULL, + `year_max_in` bigint DEFAULT NULL, + `year_max_out` bigint DEFAULT NULL, + `year_tot_in` bigint DEFAULT NULL, + `year_tot_out` bigint DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `IDX_1F0F81A7BFF2A482` (`cust_id`), CONSTRAINT `FK_1F0F81A7BFF2A482` FOREIGN KEY (`cust_id`) REFERENCES `cust` (`id`) ON DELETE CASCADE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -2338,44 +2340,44 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `traffic_daily_phys_ints`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `traffic_daily_phys_ints` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `physicalinterface_id` int(11) NOT NULL, + `id` bigint NOT NULL AUTO_INCREMENT, + `physicalinterface_id` int NOT NULL, `day` date DEFAULT NULL, - `category` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `day_avg_in` bigint(20) DEFAULT NULL, - `day_avg_out` bigint(20) DEFAULT NULL, - `day_max_in` bigint(20) DEFAULT NULL, - `day_max_out` bigint(20) DEFAULT NULL, + `category` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `day_avg_in` bigint DEFAULT NULL, + `day_avg_out` bigint DEFAULT NULL, + `day_max_in` bigint DEFAULT NULL, + `day_max_out` bigint DEFAULT NULL, `day_max_in_at` datetime DEFAULT NULL, `day_max_out_at` datetime DEFAULT NULL, - `day_tot_in` bigint(20) DEFAULT NULL, - `day_tot_out` bigint(20) DEFAULT NULL, - `week_avg_in` bigint(20) DEFAULT NULL, - `week_avg_out` bigint(20) DEFAULT NULL, - `week_max_in` bigint(20) DEFAULT NULL, - `week_max_out` bigint(20) DEFAULT NULL, + `day_tot_in` bigint DEFAULT NULL, + `day_tot_out` bigint DEFAULT NULL, + `week_avg_in` bigint DEFAULT NULL, + `week_avg_out` bigint DEFAULT NULL, + `week_max_in` bigint DEFAULT NULL, + `week_max_out` bigint DEFAULT NULL, `week_max_in_at` datetime DEFAULT NULL, `week_max_out_at` datetime DEFAULT NULL, - `week_tot_in` bigint(20) DEFAULT NULL, - `week_tot_out` bigint(20) DEFAULT NULL, - `month_avg_in` bigint(20) DEFAULT NULL, - `month_avg_out` bigint(20) DEFAULT NULL, - `month_max_in` bigint(20) DEFAULT NULL, - `month_max_out` bigint(20) DEFAULT NULL, + `week_tot_in` bigint DEFAULT NULL, + `week_tot_out` bigint DEFAULT NULL, + `month_avg_in` bigint DEFAULT NULL, + `month_avg_out` bigint DEFAULT NULL, + `month_max_in` bigint DEFAULT NULL, + `month_max_out` bigint DEFAULT NULL, `month_max_in_at` datetime DEFAULT NULL, `month_max_out_at` datetime DEFAULT NULL, - `month_tot_in` bigint(20) DEFAULT NULL, - `month_tot_out` bigint(20) DEFAULT NULL, - `year_avg_in` bigint(20) DEFAULT NULL, - `year_avg_out` bigint(20) DEFAULT NULL, - `year_max_in` bigint(20) DEFAULT NULL, - `year_max_out` bigint(20) DEFAULT NULL, + `month_tot_in` bigint DEFAULT NULL, + `month_tot_out` bigint DEFAULT NULL, + `year_avg_in` bigint DEFAULT NULL, + `year_avg_out` bigint DEFAULT NULL, + `year_max_in` bigint DEFAULT NULL, + `year_max_out` bigint DEFAULT NULL, `year_max_in_at` datetime DEFAULT NULL, `year_max_out_at` datetime DEFAULT NULL, - `year_tot_in` bigint(20) DEFAULT NULL, - `year_tot_out` bigint(20) DEFAULT NULL, + `year_tot_in` bigint DEFAULT NULL, + `year_tot_out` bigint DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), @@ -2399,21 +2401,21 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `user`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `user` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `custid` int(11) DEFAULT NULL, - `username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `password` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `authorisedMobile` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL, - `uid` int(11) DEFAULT NULL, - `privs` int(11) DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `custid` int DEFAULT NULL, + `username` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `password` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `email` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `authorisedMobile` varchar(30) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `uid` int DEFAULT NULL, + `privs` int DEFAULT NULL, `disabled` tinyint(1) DEFAULT NULL, - `lastupdatedby` int(11) DEFAULT NULL, - `creator` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `peeringdb_id` bigint(20) DEFAULT NULL, + `lastupdatedby` int DEFAULT NULL, + `creator` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `peeringdb_id` bigint DEFAULT NULL, `extra_attributes` json DEFAULT NULL COMMENT '(DC2Type:json)', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, @@ -2423,7 +2425,7 @@ CREATE TABLE `user` ( UNIQUE KEY `UNIQ_8D93D649F2C6186B` (`peeringdb_id`), KEY `IDX_8D93D649DA0209B9` (`custid`), CONSTRAINT `FK_8D93D649DA0209B9` FOREIGN KEY (`custid`) REFERENCES `cust` (`id`) ON DELETE SET NULL -) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -2442,12 +2444,12 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `user_2fa`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `user_2fa` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `user_id` int(11) NOT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `user_id` int NOT NULL, `enabled` tinyint(1) NOT NULL DEFAULT '0', - `secret` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `secret` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), @@ -2471,14 +2473,14 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `user_logins`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `user_logins` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `user_id` int(11) DEFAULT NULL, - `ip` varchar(39) COLLATE utf8_unicode_ci NOT NULL, + `id` bigint NOT NULL AUTO_INCREMENT, + `user_id` int DEFAULT NULL, + `ip` varchar(39) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `at` datetime NOT NULL, - `customer_to_user_id` int(11) DEFAULT NULL, - `via` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, + `customer_to_user_id` int DEFAULT NULL, + `via` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), @@ -2486,7 +2488,7 @@ CREATE TABLE `user_logins` ( KEY `IDX_6341CC99D43FEAE2` (`customer_to_user_id`), KEY `at_idx` (`at`), CONSTRAINT `FK_6341CC99D43FEAE2` FOREIGN KEY (`customer_to_user_id`) REFERENCES `customer_to_users` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=58 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=58 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -2505,20 +2507,20 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `user_pref`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `user_pref` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `user_id` int(11) DEFAULT NULL, - `attribute` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `ix` int(11) NOT NULL DEFAULT '0', - `op` varchar(2) COLLATE utf8_unicode_ci DEFAULT NULL, - `value` longtext COLLATE utf8_unicode_ci, - `expire` bigint(20) NOT NULL DEFAULT '0', + `id` int NOT NULL AUTO_INCREMENT, + `user_id` int DEFAULT NULL, + `attribute` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `ix` int NOT NULL DEFAULT '0', + `op` varchar(2) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `value` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci, + `expire` bigint NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `IX_UserPreference_1` (`user_id`,`attribute`,`op`,`ix`), KEY `IDX_DBD4D4F8A76ED395` (`user_id`), CONSTRAINT `FK_DBD4D4F8A76ED395` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE -) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -2537,13 +2539,13 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `user_remember_tokens`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `user_remember_tokens` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `user_id` int(11) NOT NULL, - `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, - `device` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, - `ip` varchar(39) COLLATE utf8mb4_unicode_ci NOT NULL, + `id` bigint NOT NULL AUTO_INCREMENT, + `user_id` int NOT NULL, + `token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `device` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `ip` varchar(39) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `expires` datetime NOT NULL, `is_2fa_complete` tinyint(1) NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, @@ -2570,17 +2572,17 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `vendor`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `vendor` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `shortname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `nagios_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `bundle_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `shortname` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `nagios_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `bundle_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -2594,14 +2596,14 @@ INSERT INTO `vendor` VALUES (1,'Cisco Systems','Cisco','cisco',NULL,NULL,NULL),( UNLOCK TABLES; -- --- Temporary table structure for view `view_cust_current_active` +-- Temporary view structure for view `view_cust_current_active` -- DROP TABLE IF EXISTS `view_cust_current_active`; /*!50001 DROP VIEW IF EXISTS `view_cust_current_active`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; -/*!50001 CREATE VIEW `view_cust_current_active` AS SELECT +/*!50503 SET character_set_client = utf8mb4 */; +/*!50001 CREATE VIEW `view_cust_current_active` AS SELECT 1 AS `id`, 1 AS `irrdb`, 1 AS `company_registered_detail_id`, @@ -2640,14 +2642,14 @@ SET character_set_client = utf8; SET character_set_client = @saved_cs_client; -- --- Temporary table structure for view `view_switch_details_by_custid` +-- Temporary view structure for view `view_switch_details_by_custid` -- DROP TABLE IF EXISTS `view_switch_details_by_custid`; /*!50001 DROP VIEW IF EXISTS `view_switch_details_by_custid`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; -/*!50001 CREATE VIEW `view_switch_details_by_custid` AS SELECT +/*!50503 SET character_set_client = utf8mb4 */; +/*!50001 CREATE VIEW `view_switch_details_by_custid` AS SELECT 1 AS `id`, 1 AS `custid`, 1 AS `virtualinterfacename`, @@ -2672,14 +2674,14 @@ SET character_set_client = utf8; SET character_set_client = @saved_cs_client; -- --- Temporary table structure for view `view_vlaninterface_details_by_custid` +-- Temporary view structure for view `view_vlaninterface_details_by_custid` -- DROP TABLE IF EXISTS `view_vlaninterface_details_by_custid`; /*!50001 DROP VIEW IF EXISTS `view_vlaninterface_details_by_custid`*/; SET @saved_cs_client = @@character_set_client; -SET character_set_client = utf8; -/*!50001 CREATE VIEW `view_vlaninterface_details_by_custid` AS SELECT +/*!50503 SET character_set_client = utf8mb4 */; +/*!50001 CREATE VIEW `view_vlaninterface_details_by_custid` AS SELECT 1 AS `id`, 1 AS `custid`, 1 AS `virtualinterfaceid`, @@ -2715,15 +2717,15 @@ SET character_set_client = @saved_cs_client; DROP TABLE IF EXISTS `virtualinterface`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `virtualinterface` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `custid` int(11) DEFAULT NULL, - `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `description` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `mtu` int(11) DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `custid` int DEFAULT NULL, + `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `description` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `mtu` int DEFAULT NULL, `trunk` tinyint(1) DEFAULT NULL, - `channelgroup` int(11) DEFAULT NULL, + `channelgroup` int DEFAULT NULL, `lag_framing` tinyint(1) NOT NULL DEFAULT '0', `fastlacp` tinyint(1) NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, @@ -2731,7 +2733,7 @@ CREATE TABLE `virtualinterface` ( PRIMARY KEY (`id`), KEY `IDX_11D9014FDA0209B9` (`custid`), CONSTRAINT `FK_11D9014FDA0209B9` FOREIGN KEY (`custid`) REFERENCES `cust` (`id`) ON DELETE CASCADE -) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -2750,24 +2752,24 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `vlan`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `vlan` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `infrastructureid` int(11) NOT NULL, - `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `number` int(11) DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `infrastructureid` int NOT NULL, + `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `number` int DEFAULT NULL, `private` tinyint(1) NOT NULL DEFAULT '0', - `notes` longtext COLLATE utf8_unicode_ci, + `notes` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci, `peering_matrix` tinyint(1) NOT NULL DEFAULT '0', `peering_manager` tinyint(1) NOT NULL DEFAULT '0', - `config_name` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL, + `config_name` varchar(32) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `infra_config_name` (`infrastructureid`,`config_name`), KEY `IDX_F83104A1721EBF79` (`infrastructureid`), CONSTRAINT `FK_F83104A1721EBF79` FOREIGN KEY (`infrastructureid`) REFERENCES `infrastructure` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -2786,23 +2788,23 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `vlaninterface`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `vlaninterface` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `ipv4addressid` int(11) DEFAULT NULL, - `ipv6addressid` int(11) DEFAULT NULL, - `virtualinterfaceid` int(11) DEFAULT NULL, - `vlanid` int(11) DEFAULT NULL, + `id` int NOT NULL AUTO_INCREMENT, + `ipv4addressid` int DEFAULT NULL, + `ipv6addressid` int DEFAULT NULL, + `virtualinterfaceid` int DEFAULT NULL, + `vlanid` int DEFAULT NULL, `ipv4enabled` tinyint(1) DEFAULT '0', - `ipv4hostname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `ipv4hostname` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `ipv6enabled` tinyint(1) DEFAULT '0', - `ipv6hostname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, + `ipv6hostname` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `mcastenabled` tinyint(1) DEFAULT '0', `irrdbfilter` tinyint(1) DEFAULT '1', - `bgpmd5secret` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `ipv4bgpmd5secret` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `ipv6bgpmd5secret` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, - `maxbgpprefix` int(11) DEFAULT NULL, + `bgpmd5secret` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `ipv4bgpmd5secret` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `ipv6bgpmd5secret` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, + `maxbgpprefix` int DEFAULT NULL, `rsclient` tinyint(1) DEFAULT NULL, `ipv4canping` tinyint(1) DEFAULT NULL, `ipv6canping` tinyint(1) DEFAULT NULL, @@ -2810,7 +2812,7 @@ CREATE TABLE `vlaninterface` ( `ipv6monitorrcbgp` tinyint(1) DEFAULT NULL, `as112client` tinyint(1) DEFAULT NULL, `busyhost` tinyint(1) DEFAULT NULL, - `notes` longtext COLLATE utf8_unicode_ci, + `notes` longtext CHARACTER SET utf8 COLLATE utf8_unicode_ci, `rsmorespecifics` tinyint(1) NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, @@ -2823,7 +2825,7 @@ CREATE TABLE `vlaninterface` ( CONSTRAINT `FK_B4B4411A7787D67C` FOREIGN KEY (`ipv6addressid`) REFERENCES `ipv6address` (`id`), CONSTRAINT `FK_B4B4411ABFDF15D5` FOREIGN KEY (`virtualinterfaceid`) REFERENCES `virtualinterface` (`id`) ON DELETE CASCADE, CONSTRAINT `FK_B4B4411AF48D6D0` FOREIGN KEY (`vlanid`) REFERENCES `vlan` (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; +) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- @@ -2849,7 +2851,7 @@ UNLOCK TABLES; /*!50001 SET collation_connection = utf8mb4_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ -/*!50001 VIEW `view_cust_current_active` AS select `cu`.`id` AS `id`,`cu`.`irrdb` AS `irrdb`,`cu`.`company_registered_detail_id` AS `company_registered_detail_id`,`cu`.`company_billing_details_id` AS `company_billing_details_id`,`cu`.`reseller` AS `reseller`,`cu`.`name` AS `name`,`cu`.`type` AS `type`,`cu`.`shortname` AS `shortname`,`cu`.`abbreviatedName` AS `abbreviatedName`,`cu`.`autsys` AS `autsys`,`cu`.`maxprefixes` AS `maxprefixes`,`cu`.`peeringemail` AS `peeringemail`,`cu`.`nocphone` AS `nocphone`,`cu`.`noc24hphone` AS `noc24hphone`,`cu`.`nocfax` AS `nocfax`,`cu`.`nocemail` AS `nocemail`,`cu`.`nochours` AS `nochours`,`cu`.`nocwww` AS `nocwww`,`cu`.`peeringmacro` AS `peeringmacro`,`cu`.`peeringmacrov6` AS `peeringmacrov6`,`cu`.`peeringpolicy` AS `peeringpolicy`,`cu`.`corpwww` AS `corpwww`,`cu`.`datejoin` AS `datejoin`,`cu`.`dateleave` AS `dateleave`,`cu`.`status` AS `status`,`cu`.`activepeeringmatrix` AS `activepeeringmatrix`,`cu`.`updated_at` AS `lastupdated`,`cu`.`lastupdatedby` AS `lastupdatedby`,`cu`.`creator` AS `creator`,`cu`.`created_at` AS `created`,`cu`.`MD5Support` AS `MD5Support`,`cu`.`isReseller` AS `isReseller`,`cu`.`in_manrs` AS `in_manrs`,`cu`.`in_peeringdb` AS `in_peeringdb`,`cu`.`peeringdb_oauth` AS `peeringdb_oauth` from `cust` `cu` where ((`cu`.`datejoin` <= curdate()) and (isnull(`cu`.`dateleave`) or (`cu`.`dateleave` < '1970-01-01') or (`cu`.`dateleave` >= curdate())) and ((`cu`.`status` = 1) or (`cu`.`status` = 2))) */; +/*!50001 VIEW `view_cust_current_active` AS select `cu`.`id` AS `id`,`cu`.`irrdb` AS `irrdb`,`cu`.`company_registered_detail_id` AS `company_registered_detail_id`,`cu`.`company_billing_details_id` AS `company_billing_details_id`,`cu`.`reseller` AS `reseller`,`cu`.`name` AS `name`,`cu`.`type` AS `type`,`cu`.`shortname` AS `shortname`,`cu`.`abbreviatedName` AS `abbreviatedName`,`cu`.`autsys` AS `autsys`,`cu`.`maxprefixes` AS `maxprefixes`,`cu`.`peeringemail` AS `peeringemail`,`cu`.`nocphone` AS `nocphone`,`cu`.`noc24hphone` AS `noc24hphone`,`cu`.`nocfax` AS `nocfax`,`cu`.`nocemail` AS `nocemail`,`cu`.`nochours` AS `nochours`,`cu`.`nocwww` AS `nocwww`,`cu`.`peeringmacro` AS `peeringmacro`,`cu`.`peeringmacrov6` AS `peeringmacrov6`,`cu`.`peeringpolicy` AS `peeringpolicy`,`cu`.`corpwww` AS `corpwww`,`cu`.`datejoin` AS `datejoin`,`cu`.`dateleave` AS `dateleave`,`cu`.`status` AS `status`,`cu`.`activepeeringmatrix` AS `activepeeringmatrix`,`cu`.`updated_at` AS `lastupdated`,`cu`.`lastupdatedby` AS `lastupdatedby`,`cu`.`creator` AS `creator`,`cu`.`created_at` AS `created`,`cu`.`MD5Support` AS `MD5Support`,`cu`.`isReseller` AS `isReseller`,`cu`.`in_manrs` AS `in_manrs`,`cu`.`in_peeringdb` AS `in_peeringdb`,`cu`.`peeringdb_oauth` AS `peeringdb_oauth` from `cust` `cu` where ((`cu`.`datejoin` <= curdate()) and ((`cu`.`dateleave` is null) or (`cu`.`dateleave` < '1970-01-01') or (`cu`.`dateleave` >= curdate())) and ((`cu`.`status` = 1) or (`cu`.`status` = 2))) */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; @@ -2899,4 +2901,4 @@ UNLOCK TABLES; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2021-05-28 16:03:57 +-- Dump completed on 2021-11-14 11:19:18