-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from CakeDC/feature/36942
REF #36942
- Loading branch information
Showing
6 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
62 changes: 62 additions & 0 deletions
62
config/Migrations/20240403171907_AddScienceOperationCentersProject.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
use Migrations\AbstractMigration; | ||
|
||
class AddScienceOperationCentersProject extends AbstractMigration | ||
{ | ||
/** | ||
* up method. | ||
* | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
$this->table('projects')->insert([ | ||
'title' => 'Science Operation Centers', | ||
'website' => 'https://cusp.space.swri.edu', | ||
'slug' => 'cusp-space', | ||
'technologies' => '', | ||
'brief_description' => "CakePHP enables Southwest Research Institute's SODAS team to create modular, full-stack, interactive web-apps", | ||
'description' => "<p><strong>CakePHP</strong> enables Southwest Research Institute's SODAS team to create modular, full-stack, interactive web-apps so the scientists and engineers working on over 50+ spacecraft and instruments can see the data most relevant to them, on demand.</p>", | ||
'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 'Science Operation Centers'"); | ||
|
||
$this->table('uploaded_files')->insert([ | ||
'file' => 'science-operation-centers.png', | ||
'dir' => 'webroot/files/PerspectiveImages/file/1712164462.6238', | ||
'size' => '1444462', | ||
'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' => 'science-operation-centers.png', | ||
'dir' => 'webroot/files/ScreenMonitorImages/file/1712164462.6351', | ||
'size' => '1444462', | ||
'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 'science-operation-centers.png'"); | ||
$this->query("DELETE FROM projects WHERE title like 'Science Operation Centers'"); | ||
} | ||
} |
Binary file added
BIN
+1.38 MB
webroot/files/PerspectiveImages/file/1712164462.6238/science-operation-centers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.38 MB
...ot/files/ScreenMonitorImages/file/1712164462.6351/science-operation-centers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+111 KB
...ScreenMonitorImages/file/1712164462.6351/science-operation-centershighlight.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+111 KB
...es/ScreenMonitorImages/file/1712164462.6351/science-operation-centersslider.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+24.3 KB
...les/ScreenMonitorImages/file/1712164462.6351/science-operation-centerssmall.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.