JohanObrink / rethink-migrate

A migration tool for rethink db
MIT License
47 stars 24 forks source link

Index `timestamp` was not found #28

Open cdaringe opened 8 years ago

cdaringe commented 8 years ago

hello!

thanks for the lib. i have been unable to get started successfully. i placed my database.json in the root per instructions and ran rethink-migrate up. the following occurs.

cdieringer@Snapper-osx:~/...path//api$ npm run migrate-up

> mymodule@1.0.0 migrate-up /path/to/thing
> rethink-migrate up

(node:49181) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
[rethink-migrate] Connecting to database
[rethink-migrate] Connected
[rethink-migrate] Migration failed
{ ReqlOpFailedError: Index `timestamp` was not found on table `mydb._migrations` in:
r.table("_migrations").orderBy({"index": "timestamp"})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    at ReqlOpFailedError.ReqlError [as constructor] (/path/to/thing/api/node_modules/rethinkdb/errors.js:23:13)

thanks!