only ignore json files in data dir, tracking seed and wipe scripts

This commit is contained in:
Yisroel Baum 2026-04-15 21:10:07 +03:00
parent 7e674af40a
commit 7ee4bac3fa
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
3 changed files with 29 additions and 1 deletions

17
data/seedDb.php Normal file
View file

@ -0,0 +1,17 @@
<?php
$texts = [
[
'id' => 0,
'name' => 'test text'
],
];
$fileDataMap = [
'texts.json' => $texts,
];
foreach ($fileDataMap as $file => $data) {
$path = __DIR__."/$file";
file_put_contents($path, json_encode($data, JSON_PRETTY_PRINT));
}