sdispater / eloquent

The Eloquent ORM provides a simple yet beautiful ActiveRecord implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Migrations

sdispater opened this issue · comments

Eloquent should support database migrations:

from eloquent import Migration


class UserMigration(Migration):

    def up(self):
        """
        Run the migrations
        """
        with self.schema.table('users') as table:
            # ...

    def down(self):
        """
        Revert the migrations
        """
        with self.schema.table('users') as table:
            # ...