From da0bb46af7fcf5ccb1cb991f7284c3c441b0e973 Mon Sep 17 00:00:00 2001 From: josh182014 Date: Thu, 27 Jun 2019 13:43:21 -0600 Subject: [PATCH] testing new cleanup file --- data/development.db3 | Bin 40960 -> 40960 bytes data/seeds/000-cleanup.js | 20 ++++++++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/data/development.db3 b/data/development.db3 index 751263d78ed328ea89d0f225d226d7241cb89575..fdf93af28139375d917cc2f59e5da584c8feec3b 100644 GIT binary patch delta 371 zcmWO0OKyTd007X`-lA!G1VMBFR}BJ!0|El_>7uFN2l)&LjEL#NBed}jO}cEnfZLv_ zo4R@Hce-{?*Ura7=kEFQadh+N?RN?qONL%lHhvMOEmUOH;B5}qu}$^EaY2+|xs?|a zdNitRb9dAZu2?(D`Bf`G#4=Jml=Gr&79-%%kxX=PSD`ckz4%4Jdk9!Yw?5)^IF}Jv2lX;>HfUfUcpo~Yj$7&MqWl(2rmV1G zYdBu0nUx6Hrmb+qA1X4g=un2~3P}P*8P)_J$uM)FWw_@*)PkMKz`j_aJv$E+FAw(d kZYk>JntGW5aV3#OI@$ZR18jj9C&WDWGr&rh@7yK-0sfhOz5oCK delta 371 zcmWN>%}%30003Z9-@+IlfkJVhJq|dv47StdS2&oR@>8HNLlJ5rd+-r7eFqbdrZ3=i z-)NJ)?0$#u^?UUCJ$kzuUHo~!*8czX^Y;>{jvG39bx2_1glIcNq6&uu>ut1-gF%xK z)&g&{_fW=Z$@`bs6N}{Zw5q`|Vr_hU$ynPRu<3$Qfs3*;cXDqva@bly2Yp`$xmBe_ zDyU`(g@b*%Bn;SD5{i5&IFIY`4l`fP>--1NlqsD&V2>G!jHOykmB3CaX>BcOzYys8 zgZ#Py8;KNyh{sanA)o471GdGu8&U~wf-FQ6)TaXXx^BW}x3y6iO=XwK$!8qwq%C&v z>aJ9^=T%M7xY6^8VDRR+TFl9P4m8=Cc6P3`!t}9qcRfW1a{9}9fLfR4({Ntx&AMVl l)6Hu0KwJiwvRcpb4E9ly^_00G7f2LK`*?oz&!5~E{{hEQfcXFb diff --git a/data/seeds/000-cleanup.js b/data/seeds/000-cleanup.js index 88d9fe1..88e49db 100644 --- a/data/seeds/000-cleanup.js +++ b/data/seeds/000-cleanup.js @@ -1,8 +1,16 @@ -const cleaner = require('knex-cleaner'); +// const cleaner = require('knex-cleaner'); + +// exports.seed = knex => { +// return cleaner.clean(knex, { +// ignoreTables: ['knex_migrations', 'knex_migrations_lock'], +// mode: 'truncate' +// }); +// }; exports.seed = knex => { - return cleaner.clean(knex, { - ignoreTables: ['knex_migrations', 'knex_migrations_lock'], - mode: 'truncate' - }); -}; \ No newline at end of file + return knex('food').truncate().then(function() { + return knex('volunteers').truncate().then(function() { + return knex('businesses').truncate() + }) + }) +} \ No newline at end of file