ready for test deployment
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2020-08-22 10:43:35 +02:00
parent b70b80bbea
commit 8d98cf8b66
9 changed files with 62 additions and 13 deletions

View File

@ -35,11 +35,6 @@ function create_log (index, simplex) {
}
async function seed (knex) {
await knex ('log')
.del ();
await knex ('app')
.del ();
// eslint-disable-next-line no-console
console.log ('creating seeds');
for (let i = 0; i < 5; i++)

19
seeds/prod.js Normal file
View File

@ -0,0 +1,19 @@
/*
* Copyright (C) Sapphirecode - All Rights Reserved
* This file is part of appreports which is released under GPL-3.0-or-later.
* See file 'LICENSE' for full license details.
* Created by Timo Hocker <timo@scode.ovh>, August 2020
*/
'use strict';
async function seed (knex) {
// eslint-disable-next-line no-console
console.log ('creating prod seeds');
await knex ('app')
.insert (
{ name: 'test app' }
);
}
module.exports = { seed };