Permalink
Browse files

Fix migrations

  • Loading branch information...
1 parent 0cc15a0 commit f57e93f3204a9a72e38cf60f9039c97e1e607f27 @klen committed Sep 29, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 migrate/versions/00000002_fill_admin_recv.py
@@ -9,13 +9,14 @@
from werkzeug import generate_password_hash
from base.core.models import BaseMixin
-from base.ext import db
+from flask_sqlalchemy import SQLAlchemy
+from flask import current_app
revision = '00000002'
down_revision = '00000001'
-db.metadata.clear()
+db = SQLAlchemy(current_app)
class MigrateRole(db.Model, BaseMixin):

0 comments on commit f57e93f

Please sign in to comment.