-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'issue/500-decimal-no-precision' of github.com:CakeDC/ca…
…kephp-migrations into issue/500-decimal-no-precision
- Loading branch information
Showing
7 changed files
with
126 additions
and
10 deletions.
There are no files selected for viewing
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
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
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
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,51 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
use Migrations\AbstractSeed; | ||
|
||
/** | ||
* Events seed. | ||
*/ | ||
class EventsSeed extends AbstractSeed | ||
{ | ||
/** | ||
* Run Method. | ||
* | ||
* Write your database seeder using this method. | ||
* | ||
* More information on writing seeds is available here: | ||
* https://book.cakephp.org/phinx/0/en/seeding.html | ||
* | ||
* @return void | ||
*/ | ||
public function run() | ||
{ | ||
$data = [ | ||
[ | ||
'id' => 1, | ||
'title' => 'Lorem ipsum dolor sit amet', | ||
'description' => 'Lorem ipsum dolor sit amet, aliquet feugiat.', | ||
'published' => 'Y', | ||
], | ||
[ | ||
'id' => 2, | ||
'title' => 'Second event', | ||
'description' => 'Second event description.', | ||
'published' => 'Y', | ||
], | ||
[ | ||
'id' => 3, | ||
'title' => 'Lorem ipsum dolor sit amet', | ||
'description' => 'Lorem ipsum dolor sit amet, aliquet feugiat. | ||
Convallis morbi fringilla gravida, phasellus feugiat dapibus velit nunc, pulvinar eget \'sollicitudin\' venenatis cum | ||
nullam, vivamus ut a sed, mollitia lectus. | ||
Nulla vestibulum massa neque ut et, id hendrerit sit, feugiat in taciti enim proin nibh, tempor dignissim, rhoncus | ||
duis vestibulum nunc mattis convallis.', | ||
'published' => 'Y', | ||
], | ||
]; | ||
|
||
$table = $this->table('events'); | ||
$table->insert($data)->save(); | ||
} | ||
} |
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,41 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
use Migrations\AbstractSeed; | ||
|
||
/** | ||
* Events seed. | ||
*/ | ||
class EventsSeed extends AbstractSeed | ||
{ | ||
/** | ||
* Run Method. | ||
* | ||
* Write your database seeder using this method. | ||
* | ||
* More information on writing seeds is available here: | ||
* https://book.cakephp.org/phinx/0/en/seeding.html | ||
* | ||
* @return void | ||
*/ | ||
public function run() | ||
{ | ||
$data = [ | ||
[ | ||
'id' => 1, | ||
'title' => 'Lorem ipsum dolor sit amet', | ||
'description' => 'Lorem ipsum dolor sit amet, aliquet feugiat.', | ||
'published' => 'Y', | ||
], | ||
[ | ||
'id' => 2, | ||
'title' => 'Second event', | ||
'description' => 'Second event description.', | ||
'published' => 'Y', | ||
], | ||
]; | ||
|
||
$table = $this->table('events'); | ||
$table->insert($data)->save(); | ||
} | ||
} |
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
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