diff --git a/config/Migrations/20240527091628_AddCrodSourceRescueProject.php b/config/Migrations/20240527091628_AddCrodSourceRescueProject.php new file mode 100644 index 00000000..31a07f68 --- /dev/null +++ b/config/Migrations/20240527091628_AddCrodSourceRescueProject.php @@ -0,0 +1,63 @@ +table('projects')->insert([ + 'title' => 'CrowdSource Rescue', + 'website' => 'https://crowdsourcerescue.com/', + 'slug' => 'crowdsource-rescue', + 'technologies' => '', + 'brief_description' => "CrowdSource Rescue is a Texas based disaster response non-profit that has helped rescue over 60,000 victims of natural disasters", + 'description' => "

CrowdSource Rescue is a Texas based disaster response non-profit that has helped rescue over 60,000 victims of natural disasters by connecting them to nearby volunteers and first responders.

+

It utilizes CakePHP to build fast, support high-traffic applications, and trusts Cake's framework during literal life-and-death situations.

", + 'is_highlighted' => 1, + 'is_showcase' => 1, + 'created' => date('Y-m-d H:i:s'), + 'modified' => date('Y-m-d H:i:s'), + ])->save(); + + $result = $this->fetchRow("SELECT id FROM projects WHERE title like 'CrowdSource Rescue'"); + + $this->table('uploaded_files')->insert([ + 'file' => 'crowdsource-rescue.png', + 'dir' => 'webroot/files/PerspectiveImages/file/1716802210.2311', + 'size' => '91539', + 'type' => 'image/png', + 'created' => date('Y-m-d H:i:s'), + 'modified' => date('Y-m-d H:i:s'), + 'entity_id' => $result['id'], + 'model' => 'PerspectiveImages', + ])->save(); + $this->table('uploaded_files')->insert([ + 'file' => 'crowdsource-rescue.png', + 'dir' => 'webroot/files/ScreenMonitorImages/file/1716802210.2389', + 'size' => '91539', + 'type' => 'image/png', + 'created' => date('Y-m-d H:i:s'), + 'modified' => date('Y-m-d H:i:s'), + 'entity_id' => $result['id'], + 'model' => 'ScreenMonitorImages', + ])->save(); + } + + /** + * down method. + * + * @return void + */ + public function down() + { + $this->query("DELETE FROM uploaded_files WHERE file like 'crowdsource-rescue.png'"); + $this->query("DELETE FROM projects WHERE title like 'CrowdSource Rescue'"); + } +} diff --git a/webroot/files/PerspectiveImages/file/1716802210.2311/crowdsource-rescue.png b/webroot/files/PerspectiveImages/file/1716802210.2311/crowdsource-rescue.png new file mode 100644 index 00000000..00c2bcf0 Binary files /dev/null and b/webroot/files/PerspectiveImages/file/1716802210.2311/crowdsource-rescue.png differ diff --git a/webroot/files/ScreenMonitorImages/file/1716802210.2389/crowdsource-rescue.png b/webroot/files/ScreenMonitorImages/file/1716802210.2389/crowdsource-rescue.png new file mode 100644 index 00000000..00c2bcf0 Binary files /dev/null and b/webroot/files/ScreenMonitorImages/file/1716802210.2389/crowdsource-rescue.png differ diff --git a/webroot/files/ScreenMonitorImages/file/1716802210.2389/crowdsource-rescuehighlight.png b/webroot/files/ScreenMonitorImages/file/1716802210.2389/crowdsource-rescuehighlight.png new file mode 100644 index 00000000..a3bc0ea4 Binary files /dev/null and b/webroot/files/ScreenMonitorImages/file/1716802210.2389/crowdsource-rescuehighlight.png differ diff --git a/webroot/files/ScreenMonitorImages/file/1716802210.2389/crowdsource-rescueslider.png b/webroot/files/ScreenMonitorImages/file/1716802210.2389/crowdsource-rescueslider.png new file mode 100644 index 00000000..d693970f Binary files /dev/null and b/webroot/files/ScreenMonitorImages/file/1716802210.2389/crowdsource-rescueslider.png differ diff --git a/webroot/files/ScreenMonitorImages/file/1716802210.2389/crowdsource-rescuesmall.png b/webroot/files/ScreenMonitorImages/file/1716802210.2389/crowdsource-rescuesmall.png new file mode 100644 index 00000000..7fa6a4fc Binary files /dev/null and b/webroot/files/ScreenMonitorImages/file/1716802210.2389/crowdsource-rescuesmall.png differ