Skip to content

Commit 8ec2b90

Browse files
feat(fixtures): add basic project+buzz+update
1 parent 9389a33 commit 8ec2b90

File tree

4 files changed

+121
-0
lines changed

4 files changed

+121
-0
lines changed

fixtures/project_buzz.sql

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*!40103 SET TIME_ZONE='+00:00' */;
2+
/*!40101 SET character_set_client = utf8 */;
3+
4+
CREATE TABLE `project_buzz` (
5+
`ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
6+
`Class` enum('Laddr\\ProjectBuzz') NOT NULL,
7+
`Created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
8+
`CreatorID` int(11) DEFAULT NULL,
9+
`ProjectID` int(10) unsigned NOT NULL,
10+
`Handle` varchar(255) NOT NULL,
11+
`Headline` varchar(255) NOT NULL,
12+
`URL` varchar(255) NOT NULL,
13+
`Published` timestamp NOT NULL,
14+
`ImageID` int(10) unsigned DEFAULT NULL,
15+
`Summary` text,
16+
PRIMARY KEY (`ID`),
17+
UNIQUE KEY `Handle` (`Handle`),
18+
KEY `ProjectID` (`ProjectID`)
19+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
20+
21+
INSERT INTO `project_buzz` VALUES (1,'Laddr\\ProjectBuzz','2022-10-05 00:42:40',2,1,'laddr_v3.1.1_released','Laddr v3.1.1 released!','https://github.com/CodeForPhilly/laddr/releases/tag/v3.1.1','2022-08-06 19:15:00',NULL,'## Technical\r\n\r\n- chore(deps): bump emergence-slack to v1.0.2 @themightychris');

fixtures/project_members.sql

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*!40103 SET TIME_ZONE='+00:00' */;
2+
/*!40101 SET character_set_client = utf8 */;
3+
4+
CREATE TABLE `project_members` (
5+
`ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
6+
`Class` enum('Laddr\\ProjectMember') NOT NULL,
7+
`Created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
8+
`CreatorID` int(11) DEFAULT NULL,
9+
`ProjectID` int(10) unsigned NOT NULL,
10+
`MemberID` int(10) unsigned NOT NULL,
11+
`Role` varchar(255) DEFAULT NULL,
12+
PRIMARY KEY (`ID`),
13+
UNIQUE KEY `ProjectMember` (`ProjectID`,`MemberID`)
14+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
15+
16+
INSERT INTO `project_members` VALUES (1,'Laddr\\ProjectMember','2022-10-05 00:41:02',2,1,2,'Founder');

fixtures/project_updates.sql

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*!40103 SET TIME_ZONE='+00:00' */;
2+
/*!40101 SET character_set_client = utf8 */;
3+
4+
CREATE TABLE `project_updates` (
5+
`ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
6+
`Class` enum('Laddr\\ProjectUpdate') 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+
`ProjectID` int(10) unsigned NOT NULL,
12+
`Number` int(10) unsigned NOT NULL,
13+
`Body` text NOT NULL,
14+
PRIMARY KEY (`ID`),
15+
KEY `ProjectID` (`ProjectID`)
16+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
17+
18+
INSERT INTO `project_updates` VALUES (1,'Laddr\\ProjectUpdate','2022-10-05 00:41:20',2,NULL,NULL,1,1,'Today we set up sample data to add to the project repository');
19+
20+
21+
CREATE TABLE `history_project_updates` (
22+
`RevisionID` int(10) unsigned NOT NULL AUTO_INCREMENT,
23+
`ID` int(10) unsigned NOT NULL,
24+
`Class` enum('Laddr\\ProjectUpdate') NOT NULL,
25+
`Created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
26+
`CreatorID` int(11) DEFAULT NULL,
27+
`Modified` timestamp NULL DEFAULT NULL,
28+
`ModifierID` int(10) unsigned DEFAULT NULL,
29+
`ProjectID` int(10) unsigned NOT NULL,
30+
`Number` int(10) unsigned NOT NULL,
31+
`Body` text NOT NULL,
32+
PRIMARY KEY (`RevisionID`),
33+
KEY `ID` (`ID`)
34+
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
35+
36+
INSERT INTO `history_project_updates` SELECT NULL AS RevisionID, project_updates.* FROM `project_updates`;

fixtures/projects.sql

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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

Comments
 (0)