from orator.migrations import Migration


class CreateEntriesTable(Migration):

    def up(self):
        """
        Run the migrations.
        """
        with self.schema.create('entries') as table:
            table.increments('id')
            table.string('entry_id').unique()
            table.string('entry_name')
            table.timestamps()

    def down(self):
        """
        Revert the migrations.
        """
        self.schema.drop('entries')

from orator.migrations import Migration


class CreateEntriesTable(Migration):

    def up(self):
        """
        Run the migrations.
        """
        with self.schema.create('entries') as table:
            table.increments('id')
            table.string('entry_id').unique()
            table.string('entry_name')
            table.timestamps()

    def down(self):
        """
        Revert the migrations.
        """
        self.schema.drop('entries')

Run the migrations. Revert the migrations.