|
| 1 | +/*!40103 SET TIME_ZONE='+00:00' */; |
| 2 | +/*!40101 SET character_set_client = utf8 */; |
| 3 | + |
| 4 | +CREATE TABLE `projects` ( |
| 5 | + `ID` int(10) unsigned NOT NULL AUTO_INCREMENT, |
| 6 | + `Class` enum('Laddr\\Project') NOT NULL, |
| 7 | + `Created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 8 | + `CreatorID` int(11) DEFAULT NULL, |
| 9 | + `Modified` timestamp NULL DEFAULT NULL, |
| 10 | + `ModifierID` int(10) unsigned DEFAULT NULL, |
| 11 | + `Title` varchar(255) NOT NULL, |
| 12 | + `Handle` varchar(255) NOT NULL, |
| 13 | + `MaintainerID` int(10) unsigned DEFAULT NULL, |
| 14 | + `UsersUrl` varchar(255) DEFAULT NULL, |
| 15 | + `DevelopersUrl` varchar(255) DEFAULT NULL, |
| 16 | + `README` text, |
| 17 | + `NextUpdate` int(10) unsigned NOT NULL DEFAULT '1', |
| 18 | + `Stage` enum('Commenting','Bootstrapping','Prototyping','Testing','Maintaining','Drifting','Hibernating') NOT NULL DEFAULT 'Commenting', |
| 19 | + `ChatChannel` varchar(255) DEFAULT NULL, |
| 20 | + PRIMARY KEY (`ID`), |
| 21 | + UNIQUE KEY `Handle` (`Handle`) |
| 22 | +) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
| 23 | + |
| 24 | +INSERT INTO `projects` VALUES (1,'Laddr\\Project','2022-10-05 00:41:02',2,'2022-10-05 00:41:20',2,'Laddr','laddr',2,'http://codeforphilly.github.io/laddr/','https://github.com/CodeForPhilly/laddr',NULL,2,'Maintaining','laddr'); |
| 25 | + |
| 26 | + |
| 27 | +CREATE TABLE `history_projects` ( |
| 28 | + `RevisionID` int(10) unsigned NOT NULL AUTO_INCREMENT, |
| 29 | + `ID` int(10) unsigned NOT NULL, |
| 30 | + `Class` enum('Laddr\\Project') NOT NULL, |
| 31 | + `Created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 32 | + `CreatorID` int(11) DEFAULT NULL, |
| 33 | + `Modified` timestamp NULL DEFAULT NULL, |
| 34 | + `ModifierID` int(10) unsigned DEFAULT NULL, |
| 35 | + `Title` varchar(255) NOT NULL, |
| 36 | + `Handle` varchar(255) NOT NULL, |
| 37 | + `MaintainerID` int(10) unsigned DEFAULT NULL, |
| 38 | + `UsersUrl` varchar(255) DEFAULT NULL, |
| 39 | + `DevelopersUrl` varchar(255) DEFAULT NULL, |
| 40 | + `README` text, |
| 41 | + `NextUpdate` int(10) unsigned NOT NULL DEFAULT '1', |
| 42 | + `Stage` enum('Commenting','Bootstrapping','Prototyping','Testing','Maintaining','Drifting','Hibernating') NOT NULL DEFAULT 'Commenting', |
| 43 | + `ChatChannel` varchar(255) DEFAULT NULL, |
| 44 | + PRIMARY KEY (`RevisionID`), |
| 45 | + KEY `ID` (`ID`) |
| 46 | +) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
| 47 | + |
| 48 | +INSERT INTO `history_projects` SELECT NULL AS RevisionID, projects.* FROM `projects`; |
0 commit comments