Skip to content

Ensure migration version is integer #84

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ var database = {
description: "The database for the Movies",
migrations : [
{
version: "1.0",
version: 1,
before: function(next) {
// Do magic stuff before the migration. For example, before adding indices, the Chrome implementation requires to set define a value for each of the objects.
next();
Expand All @@ -70,7 +70,7 @@ var database = {
next();
}
}, {
version: "1.1",
version: 2,
migrate: function(transaction, next) {
var store = transaction.db.objectStore("movies")
store.createIndex("titleIndex", "title", { unique: true}); // Adds an index on the movies titles
Expand Down