-
-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seed doesn't execute, marked as succeeded #301
Comments
Just curious, but is the empty space after |
@jocull great catch! Tested it in my code and you are absolutely right. The seed just returns instantly. |
@Americas Thanks, I thought that might be it. :) I actually came to this issue looking for why my seeders had stopped recording their runs in my database. What I ended up discovering is that the @mtitolo This almost certainly something a linter would catch in the future. Hope that helps :) |
That fixes |
@mtitolo Try setting your |
sequelize-data.json:
config.json:
And when I clear the DB/seederStorage and try to run
None of the Edit: Apparently |
Is it possible that the seeder path is looking in the wrong place? Where On Thu, May 12, 2016 at 11:14 AM, Michele notifications@github.com wrote:
|
They are in |
Can you try turning on logging? This is why my
|
Derp, you probably just need to set |
Magically And there's no real info on why
|
Strange, I wonder what this means?
|
WAIT I did change something. I dropped the table in the DB that used to store the changes instead of the JSON file. So if there's a If I use |
That should help narrow it down at least! I have been using On Thu, May 12, 2016 at 11:31 AM, Michele notifications@github.com wrote:
|
I did just try to run On Thu, May 12, 2016 at 11:35 AM, James O'Cull jocull@delmarsd.com wrote:
|
Seeds are applied in order so if I want
But you have to keep in mind before running that you applied all pending seeds, otherwise it'll try to undo a seed that hasn't been applied and that can cause unexpected result depending on that migration's |
I know this is an old issue but I had a very similar issue and this thread kept coming up when I searched for answers. My problem was I was trying to run a seeder file and it was completing but not actually populating my table. The problem came from the seeder file trying to populate a field that didn't exist. It didn't give me any error. Hope this helps someone else. |
…-track-status Return error message for unknown track status
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I've been struggling with this for almost an entire day. The TL;DR is that all of the
db:seed
commands will execute and not throw an error when they don't actually do anything. I've been pulling my hair out trying to figure out what the hell is going on but since there's no real documentation, it's been extremely tough.None of the seed commands ever work. Not
seed --seed
, notseed:undo
, notseed:all
(no seeds! great!), notseed:undo:all
(again there are no seeds! wat). I switched to the json seeder cache and have been manually modifying it because even though the seed doesn't do anything it gets marked as complete.Seeders that don't execute should not be marked as a success. And I know it didn't execute because I have no data in my database (I had to remove it all manually because again
undo
doesn't work).I do not have a schema. I've tried wrapping the returned
queryInterface
in an array as some Stack Overflow posts have suggested, nothing. I've tried{tableName: 'Users'}
and nothing. I've tried an empty string schema, also nothing. I've added a{schema: 'whatever'}
after the data array, nothing. I added an empty hash after the data array, nothing. So something is going on but it's just not executing my inserts or deletes, and it's not telling me there's an error. Silence is the absolute worst thing.This is with Sequelize 3.23.0, CLI 2.4.0
The text was updated successfully, but these errors were encountered: