seed and wipe sessions file
This commit is contained in:
parent
ef842f5758
commit
cb73688a99
2 changed files with 3 additions and 0 deletions
|
|
@ -40,6 +40,7 @@ $users = [
|
||||||
|
|
||||||
$plans = [];
|
$plans = [];
|
||||||
$scheduledNodes = [];
|
$scheduledNodes = [];
|
||||||
|
$sessions = [];
|
||||||
|
|
||||||
$fileDataMap = [
|
$fileDataMap = [
|
||||||
'texts.json' => $texts,
|
'texts.json' => $texts,
|
||||||
|
|
@ -47,6 +48,7 @@ $fileDataMap = [
|
||||||
'users.json' => $users,
|
'users.json' => $users,
|
||||||
'plans.json' => $plans,
|
'plans.json' => $plans,
|
||||||
'scheduledNodes.json' => $scheduledNodes,
|
'scheduledNodes.json' => $scheduledNodes,
|
||||||
|
'sessions.json' => $sessions,
|
||||||
];
|
];
|
||||||
|
|
||||||
foreach ($fileDataMap as $file => $data) {
|
foreach ($fileDataMap as $file => $data) {
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ $files = [
|
||||||
'users.json',
|
'users.json',
|
||||||
'plans.json',
|
'plans.json',
|
||||||
'scheduledNodes.json',
|
'scheduledNodes.json',
|
||||||
|
'sessions.json',
|
||||||
];
|
];
|
||||||
|
|
||||||
foreach ($files as $file) {
|
foreach ($files as $file) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue