first commit

This commit is contained in:
ryanwong
2022-06-30 05:46:02 -04:00
commit a96eaec33b
859 changed files with 199842 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
<?php
use Phinx\Seed\AbstractSeed;
/*Powered By: Manaknightdigital Inc. https://manaknightdigital.com/ Year: 2021*/
/**
* image Seeder
*
* @copyright 2019 Manaknightdigital Inc.
* @link https://manaknightdigital.com
* @license Proprietary Software licensing
* @author Ryan Wong
*/
class imageSeeder extends AbstractSeed
{
/**
* Run Method.
*
* Write your database seeder using this method.
*
* More information on writing seeders is available here:
* http://docs.phinx.org/en/latest/seeding.html
*/
public function run()
{
$data = [
[
'url' => 'https://i.imgur.com/AzJ7DRw.png',
'caption' => '',
'user_id' => 1,
'width' => 581,
'height' => 581,
'type' => 1,
'created_at' => date('Y-m-j'),
'updated_at' => date('Y-m-j H:i:s'),
],
];
$model = $this->table('image');
$model->truncate();
$model->insert($data)->save();
}
}