Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 442 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 442 Bytes

sqflmigrator

A sqflite migration helper for Flutter.

Usage

import 'package:sqflmigrator/sqflmigrator.dart';
import 'package:sqflite/sqflite.dart';

void main() async {
    final migrationsDir = Directory('./migrations');
    var db = await openDatabase('my_db.db');
    final migrator = SqflMigrator(
        db,
        migrationsDir: migrationsDir,
    );
    await migrator.init();
    await migrator.migrate();
}