Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.rst

broadway-migrate

A broadway extension for Flask-Migrate.

For more information check the Documentation.

Example

# app.py
import broadway

from broadway_migrate import extension as db

factory = broadway.factory()

factory.add_extension([
    'broadway_sqlalchemy',
    'broadway_migrate'
])

class User(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    username = db.Column(db.String(80), unique=True)
    email = db.Column(db.String(120), unique=True)

def __init__(self, username, email):
    self.username = username
    self.email = email

def __repr__(self):
    return '<User %r>' % self.username

application = factory(__name__)
$ export SQLALCHEMY_DATABASE_URI=sqlite:////tmp/test.db
$ export FLASK_APP=app.py
$ flask db init
$ flask db migrate
$ flask db upgrade

Install

To install broadway-migrate via pip:

pip install broadway-migrate

Source

To install from source:

git clone git://github.com/artisanofcode/python-broadway-migrate.git
cd python-broadway-migrate
python setup.py develop

History

See CHANGES

Licence

This project is licensed under the MIT licence.

Meta

This project uses Semantic Versioning.

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.