/**
 * Migration: CreatePostsTable
 * Creates posts table
 */
import { Schema as MigrationSchema } from '../../src/migrations/schema';
export const migration = {
    /**
     * Run migration
     */
    async up(db) {
        const schema = MigrationSchema.create(db);
        await schema.create('posts', (table) => {
            table.id();
            table.timestamps();
        });
    },
    /**
     * Rollback migration
     */
    async down(db) {
        const schema = MigrationSchema.create(db);
        await schema.dropIfExists('posts');
    },
};
