mirror of
https://github.com/quentin-g-dev/afup.git
synced 2026-03-25 01:32:08 +01:00
29 lines
494 B
PHP
29 lines
494 B
PHP
<?php
|
|
|
|
use Phinx\Seed\AbstractSeed;
|
|
|
|
class ComptaOperation extends AbstractSeed
|
|
{
|
|
public function run()
|
|
{
|
|
$data = [
|
|
[
|
|
'id' => 1,
|
|
'operation' => 'Depense',
|
|
],
|
|
[
|
|
'id' => 2,
|
|
'operation' => 'Recette',
|
|
],
|
|
];
|
|
|
|
$table = $this->table('compta_operation');
|
|
$table->truncate();
|
|
|
|
$table
|
|
->insert($data)
|
|
->save();
|
|
}
|
|
}
|
|
|