from orator.migrations import Migration class CreateSettingsTable(Migration): def up(self): """ Run the migrations. """ with self.schema.create('settings') as table: table.text('key').primary() table.text('value') table.timestamps() def down(self): """ Revert the migrations. """ self.schema.drop('settings')