Updated to new version: added indexes; changed Instances.AdmCreatedAt from float to int
This commit is contained in:
parent
4fdf287686
commit
d42499747e
1 changed files with 27 additions and 14 deletions
|
@ -50,7 +50,8 @@ CREATE TABLE `Financing` (
|
|||
`ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`Type` varchar(256) NOT NULL,
|
||||
`AddedBy` int(10) unsigned NOT NULL DEFAULT 1,
|
||||
PRIMARY KEY (`ID`)
|
||||
PRIMARY KEY (`ID`),
|
||||
KEY `AddedBy` (`ID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
|
@ -218,7 +219,7 @@ CREATE TABLE `Instances` (
|
|||
`MaxTootChars` mediumint(8) unsigned DEFAULT NULL,
|
||||
`AdmAccount` varchar(128) DEFAULT NULL,
|
||||
`AdmDisplayName` varchar(64) DEFAULT NULL,
|
||||
`AdmCreatedAt` decimal(14,4) DEFAULT NULL,
|
||||
`AdmCreatedAt` int(10) DEFAULT NULL,
|
||||
`AdmNote` varchar(4096) DEFAULT NULL,
|
||||
`AdmURL` varchar(128) DEFAULT NULL,
|
||||
`AdmAvatar` varchar(512) DEFAULT NULL,
|
||||
|
@ -228,7 +229,9 @@ CREATE TABLE `Instances` (
|
|||
`LastGuestEdit` int(10) unsigned DEFAULT NULL,
|
||||
`InsertTS` int(10) unsigned DEFAULT NULL,
|
||||
`RPos` int(10) unsigned DEFAULT NULL,
|
||||
PRIMARY KEY (`ID`)
|
||||
PRIMARY KEY (`ID`),
|
||||
KEY `LocalityID` (`ID`),
|
||||
KEY `GuestID` (`ID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
|
@ -253,7 +256,8 @@ CREATE TABLE `Languages` (
|
|||
`NameGL` varchar(64) DEFAULT NULL,
|
||||
`NameIT` varchar(64) DEFAULT NULL,
|
||||
`AddedBy` int(10) unsigned NOT NULL DEFAULT 1,
|
||||
PRIMARY KEY (`ID`)
|
||||
PRIMARY KEY (`ID`),
|
||||
KEY `AddedBy` (`ID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
|
@ -275,7 +279,8 @@ CREATE TABLE `Localities` (
|
|||
`NameGL` varchar(128) DEFAULT NULL,
|
||||
`NameIT` varchar(128) DEFAULT NULL,
|
||||
`AddedBy` int(10) unsigned NOT NULL DEFAULT 1,
|
||||
PRIMARY KEY (`ID`)
|
||||
PRIMARY KEY (`ID`),
|
||||
KEY `AddedBy` (`ID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
|
@ -324,7 +329,8 @@ CREATE TABLE `Policies` (
|
|||
`ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`Name` varchar(64) NOT NULL,
|
||||
`AddedBy` int(10) unsigned NOT NULL DEFAULT 1,
|
||||
PRIMARY KEY (`ID`)
|
||||
PRIMARY KEY (`ID`),
|
||||
KEY `AddedBy` (`ID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
|
@ -344,7 +350,8 @@ CREATE TABLE `PresFiltConds` (
|
|||
`ValueInp` varchar(256) DEFAULT NULL,
|
||||
`ClosePar` varchar(3) DEFAULT NULL,
|
||||
`AndOr` varchar(3) DEFAULT NULL,
|
||||
`Pos` tinyint(3) unsigned NOT NULL
|
||||
`Pos` tinyint(3) unsigned NOT NULL,
|
||||
KEY `PresID` (`PresID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
|
@ -364,7 +371,8 @@ CREATE TABLE `PresFiltCondsAdm` (
|
|||
`ValueInp` varchar(256) DEFAULT NULL,
|
||||
`ClosePar` varchar(3) DEFAULT NULL,
|
||||
`AndOr` varchar(3) DEFAULT NULL,
|
||||
`Pos` tinyint(3) unsigned NOT NULL
|
||||
`Pos` tinyint(3) unsigned NOT NULL,
|
||||
KEY `AdmID` (`AdmID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
|
@ -379,7 +387,8 @@ CREATE TABLE `PresOrdConds` (
|
|||
`PresID` int(10) unsigned NOT NULL,
|
||||
`Field` varchar(64) NOT NULL,
|
||||
`Sort` varchar(4) NOT NULL,
|
||||
`Pos` tinyint(3) unsigned NOT NULL
|
||||
`Pos` tinyint(3) unsigned NOT NULL,
|
||||
KEY `PresID` (`PresID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
|
@ -394,7 +403,8 @@ CREATE TABLE `PresOrdCondsAdm` (
|
|||
`AdmID` int(10) unsigned NOT NULL,
|
||||
`Field` varchar(64) NOT NULL,
|
||||
`Sort` varchar(4) NOT NULL,
|
||||
`Pos` tinyint(3) unsigned NOT NULL
|
||||
`Pos` tinyint(3) unsigned NOT NULL,
|
||||
KEY `AdmID` (`AdmID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
|
@ -441,7 +451,8 @@ CREATE TABLE `Tags` (
|
|||
`ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`Name` varchar(64) NOT NULL,
|
||||
`AddedBy` int(10) unsigned NOT NULL DEFAULT 1,
|
||||
PRIMARY KEY (`ID`)
|
||||
PRIMARY KEY (`ID`),
|
||||
KEY `AddedBy` (`ID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
|
@ -469,7 +480,8 @@ CREATE TABLE `Users` (
|
|||
`statuses_count` int(10) unsigned DEFAULT NULL,
|
||||
`last_status_at` int(10) unsigned DEFAULT NULL,
|
||||
`tags` varchar(4096) DEFAULT NULL,
|
||||
PRIMARY KEY (`ID`)
|
||||
PRIMARY KEY (`ID`),
|
||||
KEY `InstID` (`ID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
|
@ -484,7 +496,8 @@ CREATE TABLE `UsersFields` (
|
|||
`UserID` bigint(20) unsigned NOT NULL,
|
||||
`name` varchar(4096) DEFAULT NULL,
|
||||
`value` varchar(4096) DEFAULT NULL,
|
||||
`verified` tinyint(1) unsigned DEFAULT NULL
|
||||
`verified` tinyint(1) unsigned DEFAULT NULL,
|
||||
KEY `UserID` (`UserID`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
|
@ -545,4 +558,4 @@ CREATE TABLE `test` (
|
|||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||
|
||||
-- Dump completed on 2022-12-18 18:19:30
|
||||
-- Dump completed on 2022-12-20 23:03:19
|
||||
|
|
Loading…
Reference in a new issue