dropTable static method

Future<bool> dropTable(
  1. DatabaseExecutor db,
  2. String tableName
)

Drop table

Implementation

static Future<bool> dropTable(DatabaseExecutor db, String tableName) async {
  String sql = "DROP TABLE $tableName";
  await db.execute(sql);
  return !await isTableExisted(db, tableName);
}